mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 08:08:53 -05:00
update redis-check-rdb types (#12969)
seems that we forgot to update the array in redis-check rdb.
This commit is contained in:
parent
12fd752443
commit
f9a0eb60f7
@ -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))
|
||||
|
@ -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' */
|
||||
|
Loading…
Reference in New Issue
Block a user