diff options
author | qetu3790 <qetu3790@163.com> | 2020-04-06 20:52:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-06 20:52:32 +0800 |
commit | 2c42f6a8b8048d4b287afd58150e42b3fc7c97c9 (patch) | |
tree | 91401e8e3e869d72356ed27c0dde85230f786c68 /src | |
parent | 121c51f4f338dcb160398c3254024867807aa112 (diff) | |
download | redis-2c42f6a8b8048d4b287afd58150e42b3fc7c97c9.tar.gz |
fix comments about RESIZE DB opcode in rdb.c
fix comments about RESIZE DB opcode in rdb.c
Diffstat (limited to 'src')
-rw-r--r-- | src/rdb.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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); |