Skip to content

Commit

Permalink
fix: broken tx retris for cluster clients after #697
Browse files Browse the repository at this point in the history
Signed-off-by: Rueian <[email protected]>
  • Loading branch information
rueian committed Dec 24, 2024
1 parent fbdca04 commit 443734d
Show file tree
Hide file tree
Showing 2 changed files with 474 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ func (c *clusterClient) doresultfn(
continue // the transaction has been added to the retries, go to the next cmd.
}
}
if hasInit && mi < i && i < ei && mi >= 0 && ei < len(commands) && isMulti(commands[mi]) {
if hasInit && (mi < i && i < ei && mi >= 0 && isMulti(commands[mi]) || i > ei && ei >= 0 && isMulti(commands[ei])) {
continue // the current cmd is in the processed transaction and has been added to the retries.
}
mu.Lock()
Expand Down
Loading

0 comments on commit 443734d

Please sign in to comment.