diff options
author | Madelyn Olson <34459052+madolson@users.noreply.github.com> | 2021-02-09 11:52:28 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-09 11:52:28 -0800 |
commit | 899c85ae67631f4f9f866a254ac5e149b86e5529 (patch) | |
tree | c5986f36c294b3ed45103c03489728cea7b734ef /src/t_string.c | |
parent | 4554a49d32c5c0921f251262f2fbe02d7ac64b59 (diff) | |
download | redis-899c85ae67631f4f9f866a254ac5e149b86e5529.tar.gz |
Moved most static strings into the shared structure (#8411)
Moved most static strings into the shared structure
Diffstat (limited to 'src/t_string.c')
-rw-r--r-- | src/t_string.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/t_string.c b/src/t_string.c index d05366b7c..6a3b256b8 100644 --- a/src/t_string.c +++ b/src/t_string.c @@ -631,7 +631,7 @@ void decrbyCommand(client *c) { void incrbyfloatCommand(client *c) { long double incr, value; - robj *o, *new, *aux; + robj *o, *new; o = lookupKeyWrite(c->db,c->argv[1]); if (checkType(c,o,OBJ_STRING)) return; @@ -659,9 +659,7 @@ void incrbyfloatCommand(client *c) { * will not create differences in replicas or after an AOF restart. */ rewriteClientCommandArgument(c,0,shared.set); rewriteClientCommandArgument(c,2,new); - aux = createStringObject("KEEPTTL",7); - rewriteClientCommandArgument(c,3,aux); - decrRefCount(aux); + rewriteClientCommandArgument(c,3,shared.keepttl); } void appendCommand(client *c) { |