Skip to content

Commit 8db4417

Browse files
committed
refactor(FQDN): feather refactor on client and host_port.h
1 parent be432c5 commit 8db4417

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/meta/server_state.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,15 +1757,15 @@ void server_state::request_check(const partition_configuration &old_pc,
17571757
switch (request.type) {
17581758
case config_type::CT_ASSIGN_PRIMARY:
17591759
CHECK_NE(old_primary, req_node);
1760-
CHECK(utils::contains(old_secondaries, req_node), "");
1760+
CHECK(!utils::contains(old_secondaries, req_node), "");
17611761
break;
17621762
case config_type::CT_UPGRADE_TO_PRIMARY:
17631763
CHECK_NE(old_primary, req_node);
17641764
CHECK(utils::contains(old_secondaries, req_node), "");
17651765
break;
17661766
case config_type::CT_DOWNGRADE_TO_SECONDARY:
1767-
CHECK_NE(old_primary, req_node);
1768-
CHECK(utils::contains(old_secondaries, req_node), "");
1767+
CHECK_EQ(old_primary, req_node);
1768+
CHECK(!utils::contains(old_secondaries, req_node), "");
17691769
break;
17701770
case config_type::CT_DOWNGRADE_TO_INACTIVE:
17711771
case config_type::CT_REMOVE:

0 commit comments

Comments
 (0)