Skip to content
This repository was archived by the owner on Oct 18, 2021. It is now read-only.

Commit 38414cb

Browse files
authored
Merge pull request #156 from saghm/fix-update-rs-with-primary-from-member
Fix update rs with primary from member
2 parents 2509772 + 5a04f48 commit 38414cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/topology/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,13 +654,13 @@ impl TopologyDescription {
654654

655655
if self.set_name != description.set_name {
656656
self.servers.remove(&host);
657-
return;
658657
}
659658

660659
if let Some(me) = description.me {
661660
if host != me {
662661
self.servers.remove(&host);
663662
}
663+
return;
664664
}
665665

666666
self.check_if_has_primary();

0 commit comments

Comments
 (0)