MCPcopy Create free account
hub / github.com/ElementsProject/elements / Close

Method Close

src/leveldb/util/env_posix.cc:300–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298 }
299
300 Status Close() override {
301 Status status = FlushBuffer();
302 const int close_result = ::close(fd_);
303 if (close_result < 0 && status.ok()) {
304 status = PosixError(filename_, errno);
305 }
306 fd_ = -1;
307 return status;
308 }
309
310 Status Flush() override { return FlushBuffer(); }
311

Callers

nothing calls this directly

Calls 1

PosixErrorFunction · 0.85

Tested by

no test coverage detected