You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- scan thru all the commands for one node. Add multi-exec around
consecutive commands for the same slot.
- add NodeCommands.iRsp[] to record the indices of the expected
responses. eg. for [1], iRsp will be
[ None, "0", "1", [ 0, 1 ], None, "2", "3", [ 2, 3 ], 4 ]
multi #1#2 exec multi #3#4 exec Grokzen#5
- the rsp to MULTI is "OK", so we want to discard that rsp.
If the index is None, we will discard the rsp.
- the rsp for queued commands is "QUEUED" (good case) or error.
If good case, we want to discard the placeholder rsp "QUEUED".
An index with type str indicates we should discard good case rsp.
In case of error, we use that index (str->int) to record error rsp.
- the rsp for exec is a list of rsp for queued commands (good
case) or an error.
If good case, we have the indices of the commands corresponding to
the rsp.
If error, we recorded the errors already, so we can discard this
error (error of exec says "see previous errors" anyway).
- A plain int index is for commands outside multi-exec, eg. Grokzen#5.
[1]
multi
incr a{1} #1
decr b{1} #2
exec
multi
incr a{2} #3
decr b{2} #4
exec
incr a{3} Grokzen#5
0 commit comments