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

Method createSnapshot

fdbclient/ThreadSafeTransaction.cpp:105–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105ThreadFuture<Void> ThreadSafeDatabase::createSnapshot(const StringRef& uid, const StringRef& snapshot_command) {
106 DatabaseContext* db = this->db;
107 Key snapUID = uid;
108 Key cmd = snapshot_command;
109 return onMainThread([db, snapUID, cmd]() -> Future<Void> {
110 db->checkDeferredError();
111 return db->createSnapshot(snapUID, cmd);
112 });
113}
114
115ThreadFuture<DatabaseSharedState*> ThreadSafeDatabase::createSharedState() {
116 DatabaseContext* db = this->db;

Callers

nothing calls this directly

Calls 2

onMainThreadFunction · 0.50
checkDeferredErrorMethod · 0.45

Tested by

no test coverage detected