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
730cacf6
Unverified
Commit
730cacf6
authored
Feb 06, 2020
by
Salvatore Sanfilippo
Committed by
GitHub
Feb 06, 2020
Browse files
Merge pull request #6840 from oranagra/short_read_moduleid
Add handling of short read of module id in rdb
parents
4abba65e
fe7e8dc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rdb.c
View file @
730cacf6
...
@@ -1871,7 +1871,10 @@ robj *rdbLoadObject(int rdbtype, rio *rdb, robj *key) {
...
@@ -1871,7 +1871,10 @@ robj *rdbLoadObject(int rdbtype, rio *rdb, robj *key) {
}
}
}
else
if
(
rdbtype
==
RDB_TYPE_MODULE
||
rdbtype
==
RDB_TYPE_MODULE_2
)
{
}
else
if
(
rdbtype
==
RDB_TYPE_MODULE
||
rdbtype
==
RDB_TYPE_MODULE_2
)
{
uint64_t
moduleid
=
rdbLoadLen
(
rdb
,
NULL
);
uint64_t
moduleid
=
rdbLoadLen
(
rdb
,
NULL
);
if
(
rioGetReadError
(
rdb
))
return
NULL
;
if
(
rioGetReadError
(
rdb
))
{
rdbReportReadError
(
"Short read module id"
);
return
NULL
;
}
moduleType
*
mt
=
moduleTypeLookupModuleByID
(
moduleid
);
moduleType
*
mt
=
moduleTypeLookupModuleByID
(
moduleid
);
char
name
[
10
];
char
name
[
10
];
...
...
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