aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/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
commit31789cec4f59f7a6fd1e92eac523c595a7b102ac (patch)
tree584244d644ff1c81002f9d1e3f9667f4fb710181 /odb/pgsql/section-statements.txx
parentec1498dcd925d1c01074114f615b5fd4010ae274 (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/pgsql/section-statements.txx')
-rw-r--r--odb/pgsql/section-statements.txx1
1 files changed, 1 insertions, 0 deletions
diff --git a/odb/pgsql/section-statements.txx b/odb/pgsql/section-statements.txx
index d4463d1..592db7b 100644
--- a/odb/pgsql/section-statements.txx
+++ b/odb/pgsql/section-statements.txx
@@ -17,6 +17,7 @@ namespace odb
native_binding& idn,
const Oid* idt)
: conn_ (conn),
+ svm_ (0),
image_ (im),
id_binding_ (id),
idv_binding_ (idv),