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

Function newCheckpointReader

fdbserver/ServerCheckpoint.actor.cpp:26–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#include "flow/actorcompiler.h" // has to be last include
25
26ICheckpointReader* newCheckpointReader(const CheckpointMetaData& checkpoint, UID logID) {
27 const CheckpointFormat format = checkpoint.getFormat();
28 if (format == RocksDBColumnFamily || format == RocksDB) {
29 return newRocksDBCheckpointReader(checkpoint, logID);
30 } else {
31 throw not_implemented();
32 }
33
34 return nullptr;
35}
36
37ACTOR Future<Void> deleteCheckpoint(CheckpointMetaData checkpoint) {
38 wait(delay(0, TaskPriority::FetchKeys));

Calls 2

getFormatMethod · 0.80

Tested by

no test coverage detected