File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ def status(self) -> Dict[str, Any]:
6363 def should_failover (self ) -> bool :
6464 return False
6565
66- def on_shutdown (self , checkpoint_location : Optional [ int ] ):
66+ def on_shutdown (self , checkpoint_location : int , prev_location : int ):
6767 pass
6868
6969
@@ -172,7 +172,7 @@ def release(self):
172172 def should_failover (self ):
173173 return self ._failover_target is not None and self ._failover_target != self .name
174174
175- def on_shutdown (self , checkpoint_location : Optional [ int ] ):
175+ def on_shutdown (self , checkpoint_location : int , prev_location : int ):
176176 """ Called when shutdown for multisite failover has completed.
177177 """
178178 # TODO: check if we replicated everything to standby site
You can’t perform that action at this time.
0 commit comments