Commit 5c5c7d9a authored by Julien Muchembled's avatar Julien Muchembled

client: fix missing import in ZODB monkey-patch

parent 965047c1
......@@ -51,10 +51,10 @@ if needs_patch:
Connection.tpc_finish = tpc_finish
try:
if Connection._nexedi_fix != 3:
if Connection._nexedi_fix != 4:
raise Exception("A different ZODB fix is already applied")
except AttributeError:
Connection._nexedi_fix = 3
Connection._nexedi_fix = 4
# Whenever an connection is opened (and there's usually an existing one
# in DB pool that can be reused) whereas the transaction is already
......@@ -63,6 +63,8 @@ if needs_patch:
# For example, there's no open transaction when a ZPublisher/Publish
# transaction begins.
import thread
def open(self, *args, **kw):
def _flush_invalidations():
acquire = self._db._a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment