Commit 46fcdd2d authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 9af4e092
...@@ -718,9 +718,8 @@ error _Conn::resync(zodb::Tid at) { ...@@ -718,9 +718,8 @@ error _Conn::resync(zodb::Tid at) {
fmt::sprintf("watch %s @%s", v(foid), v(at))); fmt::sprintf("watch %s @%s", v(foid), v(at)));
if (err != nil) if (err != nil)
return E(err); return E(err);
if (ack != "ok") { if (ack != "ok")
return E(fmt::errorf("%s", v(ack))); return E(fmt::errorf("%s", v(ack)));
}
} }
retok = true; retok = true;
...@@ -749,11 +748,10 @@ retry: ...@@ -749,11 +748,10 @@ retry:
return make_pair(nil, E(err)); return make_pair(nil, E(err));
} }
// TODO ensure f<foid>@ wconn.at exists // TODO ensure f<foid>@ wconn.at exists - else we get pins to non-existing
// TODO else we get pins to non-existing state from wcfs, pinner replies nak, wcfs sends SIGBUS. // state from wcfs, pinner replies nak, wcfs sends SIGBUS.
//
// TODO -> better teach wcfs to reject "watch <foid> @at" for @at where f did not existed. // TODO -> better teach wcfs to reject "watch <foid> @at" for @at where f did not existed.
// (see test_wcfs_watch_before_create) // (see test_wcfs_watch_before_create)
FileH f; bool ok; FileH f; bool ok;
tie(f, ok) = wconn._filehTab.get_(foid); tie(f, ok) = wconn._filehTab.get_(foid);
......
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