Commit 8755a1cf authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 677ebcb1
...@@ -1534,6 +1534,34 @@ def test_wcfs_remmap_on_pin(): ...@@ -1534,6 +1534,34 @@ def test_wcfs_remmap_on_pin():
f._assertBlk(2, 'hello', {wl: {2:at1}}, pinfunc=_) # NOTE not world f._assertBlk(2, 'hello', {wl: {2:at1}}, pinfunc=_) # NOTE not world
# verify watching for 2 files over single watch link.
@func
def test_wcfs_watch_2files():
t = tDB(); zf1 = t.zfile
defer(t.close)
t.root['zfile2'] = zf2 = ZBigFile(blksize)
t.commit()
t.change(zf1, {0:'a2', 2:'c2'})
t.change(zf2, {1:'β2', 3:'δ2'})
at2 = t.commit()
t.change(zf1, {0:'a3', 2:'c3'})
t.change(zf2, {1:'β3', 3:'δ3'})
at3 = t.commit()
f1 = t.open(zf1)
f2 = t.open(zf2)
f1.assertData(['a3', '', 'x' ])
f2.assertData(['', 'β3', '', 'x'])
wl = t.openwatch()
wl.watch(zf1, at2, {0:at2})
wl.watch(zf2, at2, {1:at2})
# XXX + access
...@@ -1548,8 +1576,6 @@ def test_wcfs_remmap_on_pin(): ...@@ -1548,8 +1576,6 @@ def test_wcfs_remmap_on_pin():
# XXX watch for 2 files via single wlink
# XXX going not only up, but also down at1 <- at2 <- at3 ? -> forbid? # XXX going not only up, but also down at1 <- at2 <- at3 ? -> forbid?
# XXX new watch request while previous watch request is in progress (over the same /head/watch handle) # XXX new watch request while previous watch request is in progress (over the same /head/watch handle)
......
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