Skip to content

Commit

Permalink
Maintain return value of rdbSaveDb after writing slot-info aux (valke…
Browse files Browse the repository at this point in the history
…y-io#1222)

All other places written in this function are maintained it,
although the caller of rdbSaveDb does not reply on it, it is
maintained to be consistent with other places, is its duty.

Signed-off-by: Binbin <[email protected]>
  • Loading branch information
enjoy-binbin authored Oct 24, 2024
1 parent a21fe71 commit 2956367
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1355,6 +1355,7 @@ ssize_t rdbSaveDb(rio *rdb, int dbid, int rdbflags, long *key_counter) {
sdsfree(slot_info);
goto werr;
}
written += res;
last_slot = curr_slot;
sdsfree(slot_info);
}
Expand Down

0 comments on commit 2956367

Please sign in to comment.