Skip to content

Commit

Permalink
Reorder switchover cleanup to match reversed order of checks in _drop…
Browse files Browse the repository at this point in the history
…_stale_switchover (#50)
  • Loading branch information
vicpopov authored Nov 8, 2024
1 parent dabe360 commit 860b0e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -937,8 +937,8 @@ def _drop_stale_switchover(self, db_state):

def _cleanup_switchover(self):
self.zk.delete(self.zk.SWITCHOVER_LSN_PATH)
self.zk.delete(self.zk.SWITCHOVER_PRIMARY_PATH)
self.zk.delete(self.zk.SWITCHOVER_STATE_PATH)
self.zk.delete(self.zk.SWITCHOVER_PRIMARY_PATH)
self.zk.delete(self.zk.FAILOVER_INFO_PATH)

def _update_single_node_status(self, role):
Expand Down

0 comments on commit 860b0e9

Please sign in to comment.