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 | c3a2b62f33e1f3fe19700257efdba7123b272cc4 (patch) | |
tree | 281f2275a2a7202c24bf114532adcd5752eaf19d /odb/mysql/connection-factory.cxx | |
parent | 9126281b53722115b2e8624632f2dd616f0c26a0 (diff) |
Implement early connection release
Diffstat (limited to 'odb/mysql/connection-factory.cxx')
-rw-r--r-- | odb/mysql/connection-factory.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/odb/mysql/connection-factory.cxx b/odb/mysql/connection-factory.cxx index cc23de5..45a6edb 100644 --- a/odb/mysql/connection-factory.cxx +++ b/odb/mysql/connection-factory.cxx @@ -273,7 +273,10 @@ namespace odb in_use_--; if (keep) + { connections_.push_back (pooled_connection_ptr (inc_ref (c))); + connections_.back ()->recycle (); + } if (waiters_ != 0) cond_.signal (); |