diff --git a/src/replication.cpp b/src/replication.cpp index 7649139f6..748c50c7d 100644 --- a/src/replication.cpp +++ b/src/replication.cpp @@ -1922,7 +1922,7 @@ void replicationCreateCachedMasterClone(redisMaster *mi) { } client *c = createClient(nullptr, ielFromEventLoop(serverTL->el)); - c->flags |= mi->master->flags; + c->flags |= mi->master->flags & ~(CLIENT_PENDING_WRITE | CLIENT_UNBLOCKED | CLIENT_CLOSE_ASAP); c->authenticated = mi->master->authenticated; c->reploff = mi->master->reploff; c->read_reploff = mi->master->read_reploff;