Skip to content

Commit

Permalink
Fix incrDecrCommand() to create shared objects when needed.
Browse files Browse the repository at this point in the history
See #5011.
  • Loading branch information
antirez committed Jun 28, 2018
1 parent e03296d commit 1c802ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/t_string.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ void incrDecrCommand(client *c, long long incr) {
new = o;
o->ptr = (void*)((long)value);
} else {
new = createStringObjectFromLongLong(value);
new = createStringObjectFromLongLongForValue(value);
if (o) {
dbOverwrite(c->db,c->argv[1],new);
} else {
Expand Down

0 comments on commit 1c802ae

Please sign in to comment.