mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 16:48:27 -05:00
Don't propagate spurious MULTI on DEBUG LOADAOF.
This commit is contained in:
parent
51ab31dbab
commit
373a3384ac
@ -172,7 +172,10 @@ void execCommand(client *c) {
|
|||||||
* This way we'll deliver the MULTI/..../EXEC block as a whole and
|
* This way we'll deliver the MULTI/..../EXEC block as a whole and
|
||||||
* both the AOF and the replication link will have the same consistency
|
* both the AOF and the replication link will have the same consistency
|
||||||
* and atomicity guarantees. */
|
* and atomicity guarantees. */
|
||||||
if (!must_propagate && !(c->cmd->flags & (CMD_READONLY|CMD_ADMIN))) {
|
if (!must_propagate &&
|
||||||
|
!server.loading &&
|
||||||
|
!(c->cmd->flags & (CMD_READONLY|CMD_ADMIN)))
|
||||||
|
{
|
||||||
execCommandPropagateMulti(c);
|
execCommandPropagateMulti(c);
|
||||||
must_propagate = 1;
|
must_propagate = 1;
|
||||||
}
|
}
|
||||||
|
@ -3204,8 +3204,8 @@ void call(client *c, int flags) {
|
|||||||
|
|
||||||
server.fixed_time_expire++;
|
server.fixed_time_expire++;
|
||||||
|
|
||||||
/* Sent the command to clients in MONITOR mode, only if the commands are
|
/* Send the command to clients in MONITOR mode if applicable.
|
||||||
* not generated from reading an AOF. */
|
* Administrative commands are considered too dangerous to be shown. */
|
||||||
if (listLength(server.monitors) &&
|
if (listLength(server.monitors) &&
|
||||||
!server.loading &&
|
!server.loading &&
|
||||||
!(c->cmd->flags & (CMD_SKIP_MONITOR|CMD_ADMIN)))
|
!(c->cmd->flags & (CMD_SKIP_MONITOR|CMD_ADMIN)))
|
||||||
|
Loading…
Reference in New Issue
Block a user