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

.

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