Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/forkless.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ static void *forklessSaveProcessor(void *arg) {
serverLog(LL_NOTICE, "forkless-save: background processor finished. %ld items processed. %s",
items, message);

currentForklessSave = NULL;
saveInfo->err_code = err;
Comment thread
nitaicaro marked this conversation as resolved.
bgIteratorClose(saveInfo->iterator);
return NULL;
Expand Down Expand Up @@ -221,6 +220,7 @@ void forklessSaveComplete(bool terminated, void *privdata) {
saveInfo->terminated = terminated;
/* The save iterator should be terminated and freed at this point in time. */
saveInfo->iterator = NULL;
currentForklessSave = NULL;
/* For file based forkless save, we need to generate the RDB end marker. and complete the save */
if (!saveInfo->terminated && saveInfo->err_code == C_OK) {
saveInfo->err_code = rdbWriteFooter(&saveInfo->save_rio, REPLICA_REQ_NONE) == C_ERR ? C_ERR : C_OK;
Expand Down
Loading