aboutsummaryrefslogtreecommitdiff
path: root/odb/mssql/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
commitfb43a4faf5492453c751bbd2d2319c9ca8614a11 (patch)
tree4b37edc00530856b3ba506d0cd3dd29ae5da8fbf /odb/mssql/section-statements.txx
parent771c2ddb82d9f2c7e070f4afc6c679b05b405f87 (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/mssql/section-statements.txx')
-rw-r--r--odb/mssql/section-statements.txx1
1 files changed, 1 insertions, 0 deletions
diff --git a/odb/mssql/section-statements.txx b/odb/mssql/section-statements.txx
index fcb6874..7036270 100644
--- a/odb/mssql/section-statements.txx
+++ b/odb/mssql/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),