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

Function discardTransaction

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

Source from the content-addressed store, hash-verified

81}
82
83void discardTransaction(client *c) {
84 freeClientMultiState(c);
85 initClientMultiState(c);
86 c->flags &= ~(CLIENT_MULTI|CLIENT_DIRTY_CAS|CLIENT_DIRTY_EXEC);
87 unwatchAllKeys(c);
88}
89
90/* Flag the transaction as DIRTY_EXEC so that EXEC will fail.
91 * Should be called every time there is an error while queueing a command. */

Callers 7

replicationCacheMasterFunction · 0.85
discardCommandFunction · 0.85
execCommandAbortFunction · 0.85
execCommandFunction · 0.85
processCommandFunction · 0.85
resetCommandFunction · 0.85
RM_CallFunction · 0.85

Calls 3

freeClientMultiStateFunction · 0.85
initClientMultiStateFunction · 0.85
unwatchAllKeysFunction · 0.85

Tested by

no test coverage detected