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. */
| 1530 | * If the socket loading went wrong, we want to restore the old backups |
| 1531 | * into the server databases. */ |
| 1532 | void disklessLoadRestoreBackup(dbBackup *buckup) { |
| 1533 | restoreDbBackup(buckup); |
| 1534 | } |
| 1535 | |
| 1536 | /* Helper function for readSyncBulkPayload() to discard our old backups |
| 1537 | * when the loading succeeded. */ |
no test coverage detected