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

Method Sync

src/leveldb/db/fault_injection_test.cc:213–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213Status TestWritableFile::Sync() {
214 if (!env_->IsFilesystemActive()) {
215 return Status::OK();
216 }
217 // Ensure new files referred to by the manifest are in the filesystem.
218 Status s = target_->Sync();
219 if (s.ok()) {
220 state_.pos_at_last_sync_ = state_.pos_;
221 }
222 if (env_->IsFileCreatedSinceLastDirSync(state_.filename_)) {
223 Status ps = SyncParent();
224 if (s.ok() && !ps.ok()) {
225 s = ps;
226 }
227 }
228 return s;
229}
230
231Status FaultInjectionTestEnv::NewWritableFile(const std::string& fname,
232 WritableFile** result) {

Callers 4

BuildTableFunction · 0.45
WriteMethod · 0.45
LogAndApplyMethod · 0.45

Calls 2

OKFunction · 0.85

Tested by

no test coverage detected