diff options
author | yoav-steinberg <yoav@monfort.co.il> | 2021-09-26 17:45:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-26 17:45:02 +0300 |
commit | 66002530466a45bce85e4930364f1b153c44840b (patch) | |
tree | eb5f2031208ed3ca927c2b08b107e05611c17ebe /src/debug.c | |
parent | 0af7fe2cab04309e57733b428817f477d06ecbda (diff) | |
download | redis-66002530466a45bce85e4930364f1b153c44840b.tar.gz |
Client eviction ci issues (#9549)
Fixing CI test issues introduced in #8687
- valgrind warnings in readQueryFromClient when client was freed by processInputBuffer
- adding DEBUG pause-cron for tests not to be time dependent.
- skipping a test that depends on socket buffers / events not compatible with TLS
- making sure client got subscribed by not using deferring client
Diffstat (limited to 'src/debug.c')
-rw-r--r-- | src/debug.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/debug.c b/src/debug.c index 4e95e2dfd..ccaf93758 100644 --- a/src/debug.c +++ b/src/debug.c @@ -471,6 +471,8 @@ void debugCommand(client *c) { " Show low level info about the ziplist encoding of <key>.", "CLIENT-EVICTION", " Show low level client eviction pools info (maxmemory-clients).", +"PAUSE-CRON <0|1>", +" Stop periodic cron job processing.", NULL }; addReplyHelp(c, help); @@ -910,6 +912,10 @@ NULL mallctl_string(c, c->argv+2, c->argc-2); return; #endif + } else if (!strcasecmp(c->argv[1]->ptr,"pause-cron") && c->argc == 3) + { + server.pause_cron = atoi(c->argv[2]->ptr); + addReply(c,shared.ok); } else { addReplySubcommandSyntaxError(c); return; |