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

Method Sync

src/leveldb/util/env_windows.cc:302–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300 Status Flush() override { return FlushBuffer(); }
301
302 Status Sync() override {
303 // On Windows no need to sync parent directory. Its metadata will be updated
304 // via the creation of the new file, without an explicit sync.
305
306 Status status = FlushBuffer();
307 if (!status.ok()) {
308 return status;
309 }
310
311 if (!::FlushFileBuffers(handle_.get())) {
312 return Status::IOError(filename_,
313 GetWindowsErrorMessage(::GetLastError()));
314 }
315 return Status::OK();
316 }
317
318 std::string GetName() const override { return filename_; }
319

Callers

nothing calls this directly

Calls 4

IOErrorFunction · 0.85
GetWindowsErrorMessageFunction · 0.85
OKFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected