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

Method DropUnsyncedData

src/leveldb/db/fault_injection_test.cc:360–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360Status FileState::DropUnsyncedData() const {
361 int64_t sync_pos = pos_at_last_sync_ == -1 ? 0 : pos_at_last_sync_;
362 return Truncate(filename_, sync_pos);
363}
364
365class FaultInjectionTest {
366 public:

Callers 1

DropUnsyncedFileDataMethod · 0.80

Calls 1

TruncateFunction · 0.85

Tested by

no test coverage detected