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

Function discardCommand

app/redis-6.2.6/src/multi.c:107–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void discardCommand(client *c) {
108 if (!(c->flags & CLIENT_MULTI)) {
109 addReplyError(c,"DISCARD without MULTI");
110 return;
111 }
112 discardTransaction(c);
113 addReply(c,shared.ok);
114}
115
116void beforePropagateMulti() {
117 /* Propagating MULTI */

Callers

nothing calls this directly

Calls 3

addReplyErrorFunction · 0.85
discardTransactionFunction · 0.85
addReplyFunction · 0.85

Tested by

no test coverage detected