From 064abb0e8029c4ba28e81c47a1022b0ab8b975fe Mon Sep 17 00:00:00 2001 From: John Sully Date: Thu, 18 Apr 2019 22:07:35 -0400 Subject: [PATCH] Replication fake connection should inhereit the user and permission of the real connection Former-commit-id: dc2b3cf4f8965c329ea23d78c33592c99f16b109 --- src/replication.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/replication.cpp b/src/replication.cpp index 27e05c803..35a460bac 100644 --- a/src/replication.cpp +++ b/src/replication.cpp @@ -3183,6 +3183,8 @@ void replicaReplayCommand(client *c) // OK We've recieved a command lets execute client *cFake = createClient(-1, c->iel); cFake->lock.lock(); + cFake->authenticated = c->authenticated; + cFake->puser = c->puser; cFake->querybuf = sdscat(cFake->querybuf,(sds)ptrFromObj(c->argv[2])); selectDb(cFake, c->db->id); processInputBuffer(cFake, (CMD_CALL_FULL & (~CMD_CALL_PROPAGATE)));