From 29f048816a31422685c44085ac20e45d97f95ecf 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/sqlite/section-statements.txx | 1 + 1 file changed, 1 insertion(+) (limited to 'odb/sqlite/section-statements.txx') 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), -- cgit v1.1