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. */
| 2463 | * If the socket loading went wrong, we want to restore the old backups |
| 2464 | * into the server databases. */ |
| 2465 | void disklessLoadRestoreBackup(const dbBackup *buckup) { |
| 2466 | restoreDbBackup(buckup); |
| 2467 | } |
| 2468 | |
| 2469 | /* Helper function for readSyncBulkPayload() to discard our old backups |
| 2470 | * when the loading succeeded. */ |
no test coverage detected