Commit 60659055 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent d15f8444
...@@ -729,10 +729,19 @@ class tWatchLink(wcfs.WatchLink): ...@@ -729,10 +729,19 @@ class tWatchLink(wcfs.WatchLink):
t.tdb = tdb t.tdb = tdb
tdb._wlinks.add(t) tdb._wlinks.add(t)
# this tWatchLink currently watches the following files at particular state.
t._watching = {} # {} foid -> tWatch
def close(t): def close(t):
t.tdb._wlinks.remove(t) t.tdb._wlinks.remove(t)
super(tWatchLink, t).close() super(tWatchLink, t).close()
# disable all established watches
for w in t._watching.values():
w.at = z64
w.pinned = {}
t._watching = {}
# XXX just wrap req.at with tAt inpace # XXX just wrap req.at with tAt inpace
""" """
# recvReq is the same as WatchLink.recvReq but returns tSrvReq instead of PinReq. # recvReq is the same as WatchLink.recvReq but returns tSrvReq instead of PinReq.
......
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