Skip to content

Commit

Permalink
Reset restore flag
Browse files Browse the repository at this point in the history
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
  • Loading branch information
marceloneppel committed Jul 5, 2024
1 parent 7bfa678 commit cd8fdda
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1411,6 +1411,11 @@ def _set_primary_status_message(self) -> None:
try:
if "require-change-bucket-after-restore" in self.app_peer_data:
self.unit.status = BlockedStatus(MOVE_RESTORED_CLUSTER_TO_ANOTHER_BUCKET)
self.app_peer_data.update({
"restoring-backup": "",
"restore-stanza": "",
"restore-to-time": "",
})
return
if self._patroni.get_primary(unit_name_pattern=True) == self.unit.name:
self.unit.status = ActiveStatus("Primary")
Expand Down

0 comments on commit cd8fdda

Please sign in to comment.