RejectedSoftware Forums

Sign up

Four (old?) ConnectionPool-related functions...

mysql-native's Connection contains the following methods which have been
there for ages:

/// Used by Vibe.d's ConnectionPool, ignore this.
void acquire() { if( socket ) socket.acquire(); }
///ditto
void release() { if( socket ) socket.release(); }
///ditto
bool isOwner() { return socket ? socket.isOwner() : false; }
///ditto
bool amOwner() { return socket ? socket.isOwner() : false; }

Are these still relevent, or can they be removed?

Re: Four (old?) ConnectionPool-related functions...

Ok, a couple text searches through the vibe changelog revelaed these
were part of a "EventedObject", and that "EventedObject" was removed in
v0.7.19 circa four years ago. Mysqln's tests seemed to work fine with
them removed, but I wanted to be sure. Looks like they're safe for me to
remove now.

Re: Four (old?) ConnectionPool-related functions...

Am 04.02.2018 um 10:08 schrieb Nick Sabalausky:

mysql-native's Connection contains the following methods which have been
there for ages:

/// Used by Vibe.d's ConnectionPool, ignore this.
void acquire() { if( socket ) socket.acquire(); }
///ditto
void release() { if( socket ) socket.release(); }
///ditto
bool isOwner() { return socket ? socket.isOwner() : false; }
///ditto
bool amOwner() { return socket ? socket.isOwner() : false; }

Are these still relevent, or can they be removed?

Sorry for the late answer, but you are right, they are just legacy code.

Re: Four (old?) ConnectionPool-related functions...

On 02/16/2018 09:26 AM, Sönke Ludwig wrote:

Sorry for the late answer, but you are right, they are just legacy code.

Thanks.