summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2020-04-06 17:32:44 +0200
committerGitHub <noreply@github.com>2020-04-06 17:32:44 +0200
commit9a9109431b31a46da9c45fc1fd8c91b4f7bb9dc6 (patch)
treeb7c5bfe6bda542a4dadc43d654956c58da8bb7b5
parentbb30b9f913ced7380cd4a46451cdebf3588f337d (diff)
parent2c42f6a8b8048d4b287afd58150e42b3fc7c97c9 (diff)
downloadredis-9a9109431b31a46da9c45fc1fd8c91b4f7bb9dc6.tar.gz
Merge pull request #7065 from qetu3790/unstable
fix comments about RESIZE DB opcode in rdb.c
-rw-r--r--src/rdb.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rdb.c b/src/rdb.c
index fc8911979..78ec83cce 100644
--- a/src/rdb.c
+++ b/src/rdb.c
@@ -1175,10 +1175,7 @@ int rdbSaveRio(rio *rdb, int *error, int rdbflags, rdbSaveInfo *rsi) {
if (rdbSaveType(rdb,RDB_OPCODE_SELECTDB) == -1) goto werr;
if (rdbSaveLen(rdb,j) == -1) goto werr;
- /* Write the RESIZE DB opcode. We trim the size to UINT32_MAX, which
- * is currently the largest type we are able to represent in RDB sizes.
- * However this does not limit the actual size of the DB to load since
- * these sizes are just hints to resize the hash tables. */
+ /* Write the RESIZE DB opcode. */
uint64_t db_size, expires_size;
db_size = dictSize(db->dict);
expires_size = dictSize(db->expires);