Skip to content

Commit e010dc9

Browse files
committed
One MultisiteController.on_shutdown() call was missing second argument
1 parent 605a9fe commit e010dc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patroni/ha.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,7 @@ def before_shutdown() -> None:
16281628
self.release_leader_key_voluntarily(checkpoint_location)
16291629
time.sleep(2) # Give a time to somebody to take the leader lock
16301630
if mode == 'multisite':
1631-
self.patroni.multisite.on_shutdown(self.state_handler.latest_checkpoint_location())
1631+
self.patroni.multisite.on_shutdown(self.state_handler.latest_checkpoint_location(), None)
16321632
if mode_control['offline']:
16331633
node_to_follow, leader = None, None
16341634
else:

0 commit comments

Comments
 (0)