Skip to content

Commit

Permalink
Fixup: Make COPY use plain lookupKeyRead()
Browse files Browse the repository at this point in the history
  • Loading branch information
zuiderkwast committed Oct 11, 2021
1 parent ad38612 commit 86dd019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db.c
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ void copyCommand(client *c) {
}

/* Check if the element exists and get a reference */
o = lookupKeyReadWithFlags(c->db, key, LOOKUP_NOSTATS | LOOKUP_NONOTIFY);
o = lookupKeyRead(c->db, key);
if (!o) {
addReply(c,shared.czero);
return;
Expand Down

0 comments on commit 86dd019

Please sign in to comment.