[source] don't create the eid_creation connection at source initiliaztion time stable
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 09 Jun 2010 09:41:36 +0200
branchstable
changeset 5690 6de8437b06bd
parent 5684 015755f67e46
child 5691 ba2347050144
child 5692 59ceed788bdb
[source] don't create the eid_creation connection at source initiliaztion time This fixes the "already opened connection bug" in db-restore for instance.
server/sources/native.py
--- a/server/sources/native.py	Mon Jun 07 18:15:39 2010 +0200
+++ b/server/sources/native.py	Wed Jun 09 09:41:36 2010 +0200
@@ -256,7 +256,7 @@
         # we need a lock to protect eid attribution function (XXX, really?
         # explain)
         self._eid_creation_lock = Lock()
-        self._eid_creation_cnx = self.get_connection()
+        self._eid_creation_cnx = None
         # (etype, attr) / storage mapping
         self._storages = {}
         # entity types that may be used by other multi-sources instances