Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
f9a0eb60
Unverified
Commit
f9a0eb60
authored
Jan 23, 2024
by
Oran Agra
Committed by
GitHub
Jan 23, 2024
Browse files
update redis-check-rdb types (#12969)
seems that we forgot to update the array in redis-check rdb.
parent
12fd7524
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/rdb.h
View file @
f9a0eb60
...
...
@@ -81,9 +81,6 @@
#define RDB_TYPE_MODULE_PRE_GA 6
/* Used in 4.0 release candidates */
#define RDB_TYPE_MODULE_2 7
/* Module value with annotations for parsing without
the generating module being loaded. */
/* NOTE: WHEN ADDING NEW RDB TYPE, UPDATE rdbIsObjectType() BELOW */
/* Object types for encoded objects. */
#define RDB_TYPE_HASH_ZIPMAP 9
#define RDB_TYPE_LIST_ZIPLIST 10
#define RDB_TYPE_SET_INTSET 11
...
...
@@ -97,7 +94,7 @@
#define RDB_TYPE_STREAM_LISTPACKS_2 19
#define RDB_TYPE_SET_LISTPACK 20
#define RDB_TYPE_STREAM_LISTPACKS_3 21
/* NOTE: WHEN ADDING NEW RDB TYPE, UPDATE rdbIsObjectType()
BELOW
*/
/* NOTE: WHEN ADDING NEW RDB TYPE, UPDATE rdbIsObjectType()
, and rdb_type_string[]
*/
/* Test if a type is an object type. */
#define rdbIsObjectType(t) (((t) >= 0 && (t) <= 7) || ((t) >= 9 && (t) <= 21))
...
...
src/redis-check-rdb.c
View file @
f9a0eb60
...
...
@@ -98,7 +98,9 @@ char *rdb_type_string[] = {
"hash-listpack"
,
"zset-listpack"
,
"quicklist-v2"
,
"stream-v2"
,
"set-listpack"
,
"stream-v3"
,
};
/* Show a few stats collected into 'rdbstate' */
...
...
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