Răsfoiți Sursa

Add fix for failing database hook creating archive to NEWS (#1032).

Dan Helfman 6 zile în urmă
părinte
comite
0cae581014
2 a modificat fișierele cu 5 adăugiri și 4 ștergeri
  1. 1 0
      NEWS
  2. 4 4
      borgmatic/actions/create.py

+ 1 - 0
NEWS

@@ -1,4 +1,5 @@
 2.0.7.dev0
+ * #1032: Fix a bug in which a Borg archive gets created even when a database hook fails.
  * #1083: Add "debug_passphrase"/"display_passphrase" options and a "{unixtime}" placeholder in
    support of Borg 2 features.
  * #1099: Clarify documentation on command hooks order of execution.

+ 4 - 4
borgmatic/actions/create.py

@@ -74,10 +74,10 @@ def run_create(
         )
         stream_processes = [process for processes in active_dumps.values() for process in processes]
 
-        # If we have stream processes, we first create an archive with .checkpoint suffix.
-        # This is to make sure we only create a real archive if all the
-        # streaming processes completed successfully (create_archive will fail
-        # if a streaming process fails, but the archive might have already been created at this point).
+        # If we have stream processes, we first create an archive with .checkpoint suffix. This is
+        # to make sure we only create a real archive if all the streaming processes completed
+        # successfully (create_archive will fail if a streaming process fails, but the archive might
+        # have already been created at this point).
         use_checkpoint = bool(stream_processes)
 
         json_output = borgmatic.borg.create.create_archive(