diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-02-21 12:47:58 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-02-21 12:47:58 +0200 |
commit | 9155251867692cb212c26fd5380abc0815c2f44b (patch) | |
tree | e3c342a806f2164e8c50ee39d619ae36a9a4dfdc /odb/mysql/connection-factory.cxx | |
parent | 495ec10e4c1880e1d6cce5526a4d6a43a48bfa94 (diff) |
Factor out active statement cancelling into separate function
Diffstat (limited to 'odb/mysql/connection-factory.cxx')
-rw-r--r-- | odb/mysql/connection-factory.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/odb/mysql/connection-factory.cxx b/odb/mysql/connection-factory.cxx index 2f1b00c..2d86b82 100644 --- a/odb/mysql/connection-factory.cxx +++ b/odb/mysql/connection-factory.cxx @@ -229,7 +229,9 @@ namespace odb void connection_pool_factory:: release (pooled_connection* c) { + c->clear (); c->pool_ = 0; + lock l (mutex_); // Determine if we need to keep or free this connection. |