MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / discardCommand

Function discardCommand

src/multi.cpp:110–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

addReplyErrorFunction · 0.85
discardTransactionFunction · 0.85
addReplyFunction · 0.85

Tested by

no test coverage detected