summaryrefslogtreecommitdiff
path: root/src/t_string.c
diff options
context:
space:
mode:
authorMadelyn Olson <34459052+madolson@users.noreply.github.com>2021-07-03 10:51:53 -0500
committerGitHub <noreply@github.com>2021-07-03 10:51:53 -0500
commit8f59f131e5c26680d21e825695ef24a4fd7b99b7 (patch)
treea42356860604118bcc4af9cd15eb06f1de63d3db /src/t_string.c
parentaa139e2f02292d668370afde8c91575363c2d611 (diff)
downloadredis-8f59f131e5c26680d21e825695ef24a4fd7b99b7.tar.gz
Update incrDecrCommand to use addReplyLongLong (#9188)
Update incrDecrCommand to use addReplyLongLong
Diffstat (limited to 'src/t_string.c')
-rw-r--r--src/t_string.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/t_string.c b/src/t_string.c
index 91c8b1707..d7173b53f 100644
--- a/src/t_string.c
+++ b/src/t_string.c
@@ -615,9 +615,7 @@ void incrDecrCommand(client *c, long long incr) {
signalModifiedKey(c,c->db,c->argv[1]);
notifyKeyspaceEvent(NOTIFY_STRING,"incrby",c->argv[1],c->db->id);
server.dirty++;
- addReply(c,shared.colon);
- addReply(c,new);
- addReply(c,shared.crlf);
+ addReplyLongLong(c, value);
}
void incrCommand(client *c) {