summaryrefslogtreecommitdiff
path: root/src/rdb.c
diff options
context:
space:
mode:
authorGuy Benoish <guy.benoish@redislabs.com>2020-01-30 19:15:12 +0530
committerGuy Benoish <guy.benoish@redislabs.com>2020-01-30 19:15:12 +0530
commitd72b7ed4fbcf8f16196d78267b469204741121db (patch)
treecd59d69908f1dbb217f0e9492b4283b585dcdd96 /src/rdb.c
parentbf53f9280a7068ea80a47ccdc0fe9d50258e0612 (diff)
downloadredis-d72b7ed4fbcf8f16196d78267b469204741121db.tar.gz
DEBUG OBJECT should pass keyname to module when loading
Diffstat (limited to 'src/rdb.c')
-rw-r--r--src/rdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rdb.c b/src/rdb.c
index 27e1b3135..de3cdb459 100644
--- a/src/rdb.c
+++ b/src/rdb.c
@@ -1002,8 +1002,8 @@ ssize_t rdbSaveObject(rio *rdb, robj *o, robj *key) {
* the rdbSaveObject() function. Currently we use a trick to get
* this length with very little changes to the code. In the future
* we could switch to a faster solution. */
-size_t rdbSavedObjectLen(robj *o) {
- ssize_t len = rdbSaveObject(NULL,o,NULL);
+size_t rdbSavedObjectLen(robj *o, robj *key) {
+ ssize_t len = rdbSaveObject(NULL,o,key);
serverAssertWithInfo(NULL,o,len != -1);
return len;
}