Skip to content

Commit

Permalink
7.1.1 (#196)
Browse files Browse the repository at this point in the history
* fix: incorrect cluster failover in transactions

---------

Co-authored-by: Neo <[email protected]>
  • Loading branch information
aembke and neogenie authored Jan 8, 2024
1 parent c2cd654 commit 79df369
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## 7.1.1

* Fix cluster failover in transactions

## 7.1.0

* Fix panic when reconnect delay jitter is 0
* Support percent encoding in URLs
* Support tuples for `RedisValue` and `MultipleKeys`
* Make `CLIENT ID` checks optional
* Update dependencies

## 7.0.0

* Added a new client [builder](src/types/builder.rs) and configuration interface.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fred"
version = "7.1.0"
version = "7.1.1"
authors = ["Alec Embke <[email protected]>"]
edition = "2021"
description = "An async Redis client built on Tokio."
Expand Down
2 changes: 1 addition & 1 deletion src/router/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ impl Router {
if *kind == ClusterErrorKind::Moved {
let should_sync = self
.inner
.with_cluster_state(|state| Ok(state.get_server(slot).map(|owner| server == owner).unwrap_or(true)))
.with_cluster_state(|state| Ok(state.get_server(slot).map(|owner| server != owner).unwrap_or(true)))
.unwrap_or(true);

if should_sync {
Expand Down

0 comments on commit 79df369

Please sign in to comment.