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

.

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