| 82 | } |
| 83 | |
| 84 | void discardTransaction(client *c) { |
| 85 | serverAssert(GlobalLocksAcquired()); |
| 86 | freeClientMultiState(c); |
| 87 | initClientMultiState(c); |
| 88 | c->flags &= ~(CLIENT_MULTI|CLIENT_DIRTY_CAS|CLIENT_DIRTY_EXEC); |
| 89 | unwatchAllKeys(c); |
| 90 | } |
| 91 | |
| 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. */ |
no test coverage detected