[pbs-devel] applied: [PATCH backup] GC: fix logging leftover bad chunks

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Oct 29 14:44:10 CET 2020


fixes commit b4fb2623355259528587a0ab87e3970e6bb73b40, which copied
over the "Removed bad files:" block, but only adapted the log text,
not the actual variable.

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 src/backup/datastore.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backup/datastore.rs b/src/backup/datastore.rs
index c6ee00cb..04121668 100644
--- a/src/backup/datastore.rs
+++ b/src/backup/datastore.rs
@@ -563,7 +563,7 @@ impl DataStore {
             }
 
             if gc_status.still_bad > 0 {
-                crate::task_log!(worker, "Bad chunks: {}", gc_status.removed_bad);
+                crate::task_log!(worker, "Bad chunks: {}", gc_status.still_bad);
             }
 
             crate::task_log!(
-- 
2.27.0






More information about the pbs-devel mailing list