Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUGFIX: WATCH + MGET clearing inTransaction prematurely. WATCH + HGET…
…ALL does not use post_proc To reproduce the 1st problem: > t = yield conn.watch(k) > t.mget([k]) > assert t.inTransaction # boOoOm! To reproduce the second problem: > t = yield conn.watch(k) > h = yield t.hgetall(k) > assert type(h) == dict # boOoOm! This commit introduces a `commit_cc' function (similar to `unwatch_cc') which clears the `inTransaction' flag only if there has been a `MULTI' command before (fixes the 1st problem). The second problem is fixed by not delaying using `post_proc' function if only `watch' has been issued.
- Loading branch information
Showing
2 changed files
with
54 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters