# HG changeset patch # User Adrien Di Mascio # Date 1276069296 -7200 # Node ID 6de8437b06bd0ade0281f6604f55bd9b715a6cf7 # Parent 015755f67e4629870f52d78fa1f5b97c5a1e24ae [source] don't create the eid_creation connection at source initiliaztion time This fixes the "already opened connection bug" in db-restore for instance. diff -r 015755f67e46 -r 6de8437b06bd 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