Commit ca77282e authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent caf7783a
...@@ -741,9 +741,8 @@ class tFile: ...@@ -741,9 +741,8 @@ class tFile:
# tWatch represents watch for one file setup on a tWatchLink. # tWatch represents watch for one file setup on a tWatchLink.
class tWatch: class tWatch:
def __init__(w, zfile): def __init__(w, foid):
assert isinstance(zfile, ZBigFile) w.foid = foid
w.foid = zfile._p_oid
w.at = z64 # not None - always concrete w.at = z64 # not None - always concrete
w.pinned = {} # blk -> rev w.pinned = {} # blk -> rev
...@@ -1006,7 +1005,7 @@ def watch(twlink, zf, at, pinok=None): # -> tWatch ...@@ -1006,7 +1005,7 @@ def watch(twlink, zf, at, pinok=None): # -> tWatch
t = twlink.tdb t = twlink.tdb
w = twlink._watching.get(zf) w = twlink._watching.get(zf)
if w is None: if w is None:
w = twlink._watching[zf] = tWatch(zf) w = twlink._watching[zf] = tWatch(zf._p_oid)
at_prev = None at_prev = None
else: else:
at_prev = w.at # we were previously watching zf @at_prev at_prev = w.at # we were previously watching zf @at_prev
......
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