MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / createSnapshot

Method createSnapshot

src/server.h:1380–1385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1378
1379public:
1380 const redisDbPersistentDataSnapshot *createSnapshot(uint64_t mvccCheckpoint, bool fOptional) {
1381 auto psnapshot = redisDbPersistentData::createSnapshot(mvccCheckpoint, fOptional);
1382 if (psnapshot != nullptr)
1383 mvccLastSnapshot = psnapshot->mvccCheckpoint();
1384 return psnapshot;
1385 }
1386
1387 unsigned long expires_cursor = 0;
1388 dict *blocking_keys; /* Keys with clients waiting for data (BLPOP)*/

Callers

nothing calls this directly

Calls 1

mvccCheckpointMethod · 0.80

Tested by

no test coverage detected