Commit 79113e49 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent f1dd4cbc
......@@ -200,7 +200,7 @@ void Conn::_pin1(SrvReq *req) {
wconn->_filemu.lock();
auto _ = wconn->_filetab.find(req->foid);
if (_ == wconn->_filetab.end()) {
// XXX unlock
wconn->_filemu.unlock();
// XXX err = we are not watching the file - why wcfs sent us this update?
}
......@@ -226,13 +226,12 @@ void Conn::_pin1(SrvReq *req) {
// update f.pinned
// XXX do it before ^^^ remmapblk (so that e.g. concurrent
// discard/writeout see correct f.pinned) ?
#if 0
if req.at is None:
f.pinned.pop(req.blk, None) # = delete(f.pinned, req.blk) -- unpin to @head
else:
f.pinned[req.blk] = req.at
if (req->at == TidHead) {
f->pinned.erase(req->blk); // unpin to @head
}
else {
f->pinned[req->blk] = req->at;
}
#endif
wconn->_filemu.unlock();
}
......
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