Skip to content

Commit 2956367

Browse files
authored
Maintain return value of rdbSaveDb after writing slot-info aux (valkey-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]>
1 parent a21fe71 commit 2956367

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rdb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,7 @@ ssize_t rdbSaveDb(rio *rdb, int dbid, int rdbflags, long *key_counter) {
13551355
sdsfree(slot_info);
13561356
goto werr;
13571357
}
1358+
written += res;
13581359
last_slot = curr_slot;
13591360
sdsfree(slot_info);
13601361
}

0 commit comments

Comments
 (0)