Commit 1c3b7750 authored by Kirill Smelkov's avatar Kirill Smelkov

X zconn_at for ZODB4

parent cd5041bb
...@@ -232,7 +232,7 @@ def test_deactivate_btree(): ...@@ -232,7 +232,7 @@ def test_deactivate_btree():
# verify that zconn_at gives correct answer. # verify that zconn_at gives correct answer.
@xfail(zmajor < 5, reason="zconn_at is TODO for ZODB4 and ZODB3") @xfail(zmajor < 4, reason="zconn_at is TODO for ZODB3")
@func @func
def test_zconn_at(): def test_zconn_at():
stor = testdb.getZODBStorage() stor = testdb.getZODBStorage()
......
...@@ -182,17 +182,10 @@ def zconn_at(zconn): # -> tid ...@@ -182,17 +182,10 @@ def zconn_at(zconn): # -> tid
# ZODB4 # ZODB4
# #
# Connection: # We rely on our patch in 4-nxd branch.
# .before !None for historic connections
#
# ._txn_time - if !None - set to tid of _next_ transaction
# XXX set to None initially - what to do?
#
# # XXX do something like that ZODB5 is doing:
# zconn._start = zconn._storage.lastTransaction() + 1
# # XXX _and_ check out queued invalidations
elif zmajor == 4: elif zmajor == 4:
raise AssertionError("zconn_at: TODO: add support for ZODB4") assert 'conn:at' in ZODB.nxd_patches # XXX error message if not there
return zconn.at()
# ZODB3 # ZODB3
......
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