Skip to content

Commit 605a9fe

Browse files
committed
bugfix: Make on_shutdown APIs match
1 parent 76048a7 commit 605a9fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

patroni/multisite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)