MCPcopy Create free account
hub / github.com/F-Stack/f-stack / flushallCommand

Function flushallCommand

app/redis-6.2.6/src/db.c:674–679  ·  view source on GitHub ↗

FLUSHALL [ASYNC] * * Flushes the whole server data set. */

Source from the content-addressed store, hash-verified

672 *
673 * Flushes the whole server data set. */
674void flushallCommand(client *c) {
675 int flags;
676 if (getFlushCommandFlags(c,&flags) == C_ERR) return;
677 flushAllDataAndResetRDB(flags);
678 addReply(c,shared.ok);
679}
680
681/* This command implements DEL and LAZYDEL. */
682void delGenericCommand(client *c, int lazy) {

Callers

nothing calls this directly

Calls 3

getFlushCommandFlagsFunction · 0.85
flushAllDataAndResetRDBFunction · 0.85
addReplyFunction · 0.85

Tested by

no test coverage detected