Maintain return value of rdbSaveDb after writing slot-info aux (#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 <binloveplay1314@qq.com>
This commit is contained in:
Binbin 2024-10-24 21:53:05 +08:00 committed by GitHub
parent a21fe718f4
commit 2956367731
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}