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

Function disklessLoadRestoreBackup

src/replication.cpp:2465–2467  ·  view source on GitHub ↗

Helper function for readSyncBulkPayload(): when replica-side diskless * database loading is used, Redis makes a backup of the existing databases * before loading the new ones from the socket. * * If the socket loading went wrong, we want to restore the old backups * into the server databases. */

Source from the content-addressed store, hash-verified

2463 * If the socket loading went wrong, we want to restore the old backups
2464 * into the server databases. */
2465void disklessLoadRestoreBackup(const dbBackup *buckup) {
2466 restoreDbBackup(buckup);
2467}
2468
2469/* Helper function for readSyncBulkPayload() to discard our old backups
2470 * when the loading succeeded. */

Callers 1

readSyncBulkPayloadRdbFunction · 0.85

Calls 1

restoreDbBackupFunction · 0.85

Tested by

no test coverage detected