Commit 9f8828aa authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 2c94dbd0
......@@ -63,7 +63,8 @@ public:
// XXX empty ctor -> fd=-1, path=?
int fd();
string name();
error close();
//error close();
void close();
error stat(struct stat *st);
};
......
......@@ -257,7 +257,9 @@ error _Mapping::_remmapblk(int64_t blk, Tid at) {
fmt::sprintf("@%s/bigfile/%s", h_(at), h_(f->foid)));
if (err != nil)
return err;
defer(fsfile.close);
defer([&]() { // FIXME move out of local scope
fsfile.close();
});
}
struct stat st;
......
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