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

Function flagTransaction

src/multi.cpp:94–97  ·  view source on GitHub ↗

Flag the transaction as DIRTY_EXEC so that EXEC will fail. * Should be called every time there is an error while queueing a command. */

Source from the content-addressed store, hash-verified

92/* Flag the transaction as DIRTY_EXEC so that EXEC will fail.
93 * Should be called every time there is an error while queueing a command. */
94void flagTransaction(client *c) {
95 if (c->flags & CLIENT_MULTI)
96 c->flags |= CLIENT_DIRTY_EXEC;
97}
98
99void multiCommand(client *c) {
100 serverAssert(GlobalLocksAcquired());

Callers 3

rejectCommandFunction · 0.85
rejectCommandFormatFunction · 0.85
processCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected