Commit 5126d2be authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent b4740cee
......@@ -370,7 +370,7 @@ error _FileH::close() {
// fileh could be opened for the same foid. Be careful not to erase it.
wconn->_filehmu.lock();
// XXX decref open count
if (wconn->_filehtab.get(fileh.foid)._ptr() == &fileh) // XXX _ptr() - or better teach `refptr<T> == T*` ?
if (wconn->_filehtab.get(fileh.foid)._ptr() == &fileh)
wconn->_filehtab.erase(fileh.foid);
wconn->_filehmu.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