| 81 | } |
| 82 | |
| 83 | void 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. */ |
no test coverage detected