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

Method writeKey_impl

fdbclient/FileBackupAgent.actor.cpp:562–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560
561 // Write begin key or end key.
562 ACTOR static Future<Void> writeKey_impl(RangeFileWriter* self, Key k) {
563 int toWrite = sizeof(uint32_t) + k.size();
564 wait(self->newBlockIfNeeded(toWrite));
565 wait(self->file->appendStringRefWithLen(k));
566 return Void();
567 }
568
569 Future<Void> writeKey(Key k) { return writeKey_impl(this, k); }
570

Callers

nothing calls this directly

Calls 4

newBlockIfNeededMethod · 0.95
VoidClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected