From 31789cec4f59f7a6fd1e92eac523c595a7b102ac Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 28 Sep 2013 10:51:12 +0200 Subject: 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. --- odb/pgsql/section-statements.txx | 1 + 1 file changed, 1 insertion(+) (limited to 'odb/pgsql/section-statements.txx') 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), -- cgit v1.1