mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
fixed a problem leading to crashes, as keys can't be currently specially encoded, so we can't encode integers at object loading time... For now this can be fixed passing a few flags, or later can be fixed allowing encoded keys as well
This commit is contained in:
parent
ee14da56e6
commit
bd59ecfb92
2
redis.c
2
redis.c
@ -3818,7 +3818,7 @@ static robj *rdbLoadIntegerObject(FILE *fp, int enctype) {
|
|||||||
val = 0; /* anti-warning */
|
val = 0; /* anti-warning */
|
||||||
redisPanic("Unknown RDB integer encoding type");
|
redisPanic("Unknown RDB integer encoding type");
|
||||||
}
|
}
|
||||||
return createStringObjectFromLongLong(val);
|
return createObject(REDIS_STRING,sdsfromlonglong(val));
|
||||||
}
|
}
|
||||||
|
|
||||||
static robj *rdbLoadLzfStringObject(FILE*fp) {
|
static robj *rdbLoadLzfStringObject(FILE*fp) {
|
||||||
|
Loading…
Reference in New Issue
Block a user