From: Francis Dupont Date: Mon, 4 Nov 2019 16:26:27 +0000 (+0100) Subject: [960-mysql-connection-pool] Post rebase fixes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7277c7d207967b3b147d20d8a631b9d3fb37dcff;p=thirdparty%2Fkea.git [960-mysql-connection-pool] Post rebase fixes --- diff --git a/src/lib/dhcpsrv/mysql_lease_mgr.cc b/src/lib/dhcpsrv/mysql_lease_mgr.cc index fe39c73ed9..41481cea50 100644 --- a/src/lib/dhcpsrv/mysql_lease_mgr.cc +++ b/src/lib/dhcpsrv/mysql_lease_mgr.cc @@ -2223,7 +2223,12 @@ MySqlLeaseMgr::getLeases4(const string& hostname) const { // ... and get the data Lease4Collection result; - getLeaseCollection(GET_LEASE4_HOSTNAME, inbind, result); + + // Get a context + MySqlLeaseContextAlloc get_context(*this); + MySqlLeaseContextPtr ctx = get_context.ctx_; + + getLeaseCollection(ctx, GET_LEASE4_HOSTNAME, inbind, result); return (result); } @@ -2520,7 +2525,12 @@ MySqlLeaseMgr::getLeases6(const string& hostname) const { // ... and get the data Lease6Collection result; - getLeaseCollection(GET_LEASE6_HOSTNAME, inbind, result); + + // Get a context + MySqlLeaseContextAlloc get_context(*this); + MySqlLeaseContextPtr ctx = get_context.ctx_; + + getLeaseCollection(ctx, GET_LEASE6_HOSTNAME, inbind, result); return (result); }