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
08b218bf
Unverified
Commit
08b218bf
authored
Feb 06, 2020
by
Salvatore Sanfilippo
Committed by
GitHub
Feb 06, 2020
Browse files
Merge pull request #6847 from oranagra/module_read_err_panic
moduleRDBLoadError, add key name, and use panic rather than exit
parents
5558c0e4
85cc696f
Changes
1
Show whitespace changes
Inline
Side-by-side
src/module.c
View file @
08b218bf
...
@@ -3649,14 +3649,15 @@ void moduleRDBLoadError(RedisModuleIO *io) {
...
@@ -3649,14 +3649,15 @@ void moduleRDBLoadError(RedisModuleIO *io) {
io
->
error
=
1
;
io
->
error
=
1
;
return
;
return
;
}
}
server
Log
(
LL_WARNING
,
server
Panic
(
"Error loading data from RDB (short read or EOF). "
"Error loading data from RDB (short read or EOF). "
"Read performed by module '%s' about type '%s' "
"Read performed by module '%s' about type '%s' "
"after reading '%llu' bytes of a value."
,
"after reading '%llu' bytes of a value "
"for key named: '%s'."
,
io
->
type
->
module
->
name
,
io
->
type
->
module
->
name
,
io
->
type
->
name
,
io
->
type
->
name
,
(
unsigned
long
long
)
io
->
bytes
);
(
unsigned
long
long
)
io
->
bytes
,
exit
(
1
);
io
->
key
?
(
char
*
)
io
->
key
->
ptr
:
"(null)"
);
}
}
/* Returns 0 if there's at least one registered data type that did not declare
/* Returns 0 if there's at least one registered data type that did not declare
...
...
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