MCPcopy Create free account
hub / github.com/apple/foundationdb / sync

Method sync

fdbrpc/AsyncFileEncrypted.actor.cpp:127–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 }
126
127 ACTOR static Future<Void> sync(Reference<AsyncFileEncrypted> self) {
128 ASSERT(self->mode == AsyncFileEncrypted::Mode::APPEND_ONLY);
129 wait(self->writeLastBlockToFile());
130 wait(self->file->sync());
131 return Void();
132 }
133
134 ACTOR static Future<Void> zeroRange(AsyncFileEncrypted* self, int64_t offset, int64_t length) {
135 ASSERT(self->mode == AsyncFileEncrypted::Mode::APPEND_ONLY);

Callers

nothing calls this directly

Calls 3

writeLastBlockToFileMethod · 0.80
VoidClass · 0.70
syncMethod · 0.45

Tested by

no test coverage detected