MCPcopy Create free account
hub / github.com/F-Stack/f-stack / disklessLoadRestoreBackup

Function disklessLoadRestoreBackup

app/redis-6.2.6/src/replication.c:1532–1534  ·  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

1530 * If the socket loading went wrong, we want to restore the old backups
1531 * into the server databases. */
1532void disklessLoadRestoreBackup(dbBackup *buckup) {
1533 restoreDbBackup(buckup);
1534}
1535
1536/* Helper function for readSyncBulkPayload() to discard our old backups
1537 * when the loading succeeded. */

Callers 1

readSyncBulkPayloadFunction · 0.85

Calls 1

restoreDbBackupFunction · 0.85

Tested by

no test coverage detected