From e4b2a3484d7a640ff84803e0d9374c93063a151e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 15 Oct 2012 13:17:30 +0200 Subject: Implement early connection release --- odb/pgsql/connection-factory.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'odb/pgsql/connection-factory.cxx') diff --git a/odb/pgsql/connection-factory.cxx b/odb/pgsql/connection-factory.cxx index fdf3942..6e602d3 100644 --- a/odb/pgsql/connection-factory.cxx +++ b/odb/pgsql/connection-factory.cxx @@ -133,7 +133,10 @@ namespace odb in_use_--; if (keep) + { connections_.push_back (pooled_connection_ptr (inc_ref (c))); + connections_.back ()->recycle (); + } if (waiters_ != 0) cond_.signal (); -- cgit v1.1