Skip to content

Commit 474436f

Browse files
authored
Changed the way of getting key
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
1 parent 55fb07d commit 474436f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cluster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ void restoreCommand(client *c) {
269269
}
270270

271271
long long now = commandTimeSnapshot();
272-
obj = rdbLoadObject(type, &payload, key->ptr, c->db->id, NULL, RDBFLAGS_NONE, now);
272+
obj = rdbLoadObject(type, &payload, objectGetVal(key), c->db->id, NULL, RDBFLAGS_NONE, now);
273273
if (obj == NULL) {
274274
addReplyError(c, "Bad data format");
275275
return;

0 commit comments

Comments
 (0)