diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-15 13:17:30 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-15 13:17:30 +0200 |
commit | 043f4a1a1bb27baafa25c959e2284453ca32dc47 (patch) | |
tree | ebaefd68f235350b1a14690c6d89e726d4aca8da /odb/mssql/connection-factory.cxx | |
parent | a049724c258a42af57d1ff572c3d15a3678e3875 (diff) |
Implement early connection release
Diffstat (limited to 'odb/mssql/connection-factory.cxx')
-rw-r--r-- | odb/mssql/connection-factory.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/odb/mssql/connection-factory.cxx b/odb/mssql/connection-factory.cxx index 1a86fcf..8360423 100644 --- a/odb/mssql/connection-factory.cxx +++ b/odb/mssql/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 (); |