Skip to content

Commit

Permalink
add return in switch_pgdata
Browse files Browse the repository at this point in the history
  • Loading branch information
jopadi committed Nov 28, 2023
1 parent 342a2f0 commit 577de05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions postgres-appliance/major_upgrade/pg_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ def switch_pgdata(self):
"""
Switche the PostgreSQL data directory by renaming the current data directory to a old directory,
and renaming the new data directory to the current data directory.
:returns: bool: True if the PostgreSQL data directory was successfully switched, False otherwise.
"""
self._old_data_dir = self._data_dir + '_old'
self.cleanup_old_pgdata()
Expand Down

0 comments on commit 577de05

Please sign in to comment.