aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite/section-statements.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-09-28 10:51:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-09-28 10:51:12 +0200
commit29f048816a31422685c44085ac20e45d97f95ecf (patch)
treedb49f030da3ee5c6598e03ee5f273381a838dc7b /odb/sqlite/section-statements.txx
parent0392ff4895fed7eb6a3f6befd53a07a7cd9990b4 (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/sqlite/section-statements.txx')
-rw-r--r--odb/sqlite/section-statements.txx1
1 files changed, 1 insertions, 0 deletions
diff --git a/odb/sqlite/section-statements.txx b/odb/sqlite/section-statements.txx
index b6945d9..f097a5d 100644
--- a/odb/sqlite/section-statements.txx
+++ b/odb/sqlite/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),