From 12aa1b18d99b51e513e9e82c0ed45717d7538ca0 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/relational/inline.hxx | 6 ------ 1 file changed, 6 deletions(-) (limited to 'odb/relational/inline.hxx') diff --git a/odb/relational/inline.hxx b/odb/relational/inline.hxx index 95b4328..d1a4393 100644 --- a/odb/relational/inline.hxx +++ b/odb/relational/inline.hxx @@ -235,12 +235,6 @@ namespace relational bool versioned (context::versioned (c)); - // Schema name as a string literal or empty. - // - string schema_name (options.schema_name ()[db]); - if (!schema_name.empty ()) - schema_name = strlit (schema_name); - string const& type (class_fq_name (c)); string traits ("access::object_traits_impl< " + type + ", id_" + db.string () + " >"); -- cgit v1.1