diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-09-28 10:51:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-09-28 10:51:12 +0200 |
commit | 529b9704026fb7db8105f22dd5edbe6db1cdc706 (patch) | |
tree | 40877218bc3fcdf981f9e6fd63c79ddf138c8b28 /odb/mysql/section-statements.txx | |
parent | e97e47cb1eeac5992d3316da9f005cc576a40611 (diff) |
Make schema version access (but not modification) thread-safe
Also cache the version in statements so that we don't have to lock
the mutex (slow) every time we need to check the version.
Diffstat (limited to 'odb/mysql/section-statements.txx')
-rw-r--r-- | odb/mysql/section-statements.txx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/odb/mysql/section-statements.txx b/odb/mysql/section-statements.txx index 282551c..9bb8689 100644 --- a/odb/mysql/section-statements.txx +++ b/odb/mysql/section-statements.txx @@ -14,6 +14,7 @@ namespace odb image_type& im, binding& id, binding& idv) : conn_ (conn), + svm_ (0), image_ (im), id_binding_ (id), idv_binding_ (idv), |