Skip to content

Commit

Permalink
logging for renaming partial WAL files
Browse files Browse the repository at this point in the history
  • Loading branch information
kathia-barahona committed Jul 5, 2023
1 parent 6a78754 commit 2e5b1c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pghoard/pghoard.py
Expand Up @@ -961,6 +961,7 @@ def _rename_partial_files_if_completed(self, site: str, wal_location: str) -> No
# TODO: handle partial files that are incompleted
return

self.log.info("Found a completed partial WAL file %r, renaming before shutdown.", partial_file_path)
# this will not trigger inotify
os.rename(partial_file_path, renamed_partial_file_path)

Expand Down

0 comments on commit 2e5b1c6

Please sign in to comment.