summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-01-14 17:01:49 +0100
committerantirez <antirez@gmail.com>2019-01-14 17:01:49 +0100
commit733438fe23f67559d4da922c749664ed5db5dfc9 (patch)
treee9b6be33ab8a0007eb1f749c198a54e704596c40
parent09391369b871eb9def03a61bafa40c7cfedda6a7 (diff)
downloadredis-733438fe23f67559d4da922c749664ed5db5dfc9.tar.gz
RESP3: Populate new fields for the AOF fake client.
However we should remove this fake client ad-hoc creation, and replace it with the proper call to createClient(-1), and then adjust the fake client as we like.
-rw-r--r--src/aof.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/aof.c b/src/aof.c
index 9723fc333..7d76c6f32 100644
--- a/src/aof.c
+++ b/src/aof.c
@@ -645,6 +645,8 @@ struct client *createFakeClient(void) {
c->obuf_soft_limit_reached_time = 0;
c->watched_keys = listCreate();
c->peerid = NULL;
+ c->resp = 2;
+ c->user = NULL;
listSetFreeMethod(c->reply,freeClientReplyValue);
listSetDupMethod(c->reply,dupClientReplyValue);
initClientMultiState(c);