Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
9a910943
Unverified
Commit
9a910943
authored
Apr 06, 2020
by
Salvatore Sanfilippo
Committed by
GitHub
Apr 06, 2020
Browse files
Merge pull request #7065 from qetu3790/unstable
fix comments about RESIZE DB opcode in rdb.c
parents
bb30b9f9
2c42f6a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rdb.c
View file @
9a910943
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment