File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1626,7 +1626,8 @@ def on_shutdown(checkpoint_location: int, prev_location: int) -> None:
16261626 status ['released' ] = True
16271627
16281628 if mode == 'multisite' :
1629- on_shutdown = self .patroni .multisite .on_shutdown
1629+ on_shutdown = self .patroni .multisite .on_shutdown # noqa: F811
1630+
16301631 def before_shutdown () -> None :
16311632 if self .state_handler .mpp_handler .is_coordinator ():
16321633 self .state_handler .mpp_handler .on_demote ()
@@ -1659,7 +1660,7 @@ def before_shutdown() -> None:
16591660 time .sleep (2 ) # Give a time to somebody to take the leader lock
16601661
16611662 if mode == 'multisite' :
1662- self . patroni . multisite . on_shutdown (checkpoint_lsn , prev_lsn ) # pyright: ignore [reportArgumentType] # noqa: F811
1663+ on_shutdown (checkpoint_lsn , prev_lsn ) # pyright: ignore [reportArgumentType] # noqa: F811
16631664
16641665 if mode == 'demote-cluster' :
16651666 if demote_cluster_with_archive :
You can’t perform that action at this time.
0 commit comments