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

Method waitAndSync

fdbserver/DiskQueue.actor.cpp:126–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 Reference<IAsyncFile> file;
125
126 ACTOR static Future<Void> waitAndSync(SyncQueue* self) {
127 wait(self->outstanding.front());
128 self->outstanding.pop_front();
129 wait(self->file->sync());
130 return Void();
131 }
132};
133
134// We use a Tracked instead of a Reference when the shutdown/destructor code would need to wait() on pending file

Callers

nothing calls this directly

Calls 4

frontMethod · 0.80
VoidClass · 0.50
pop_frontMethod · 0.45
syncMethod · 0.45

Tested by

no test coverage detected