]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
cloud: Fix #8866 reset VolCatBytes to 0 so it's updated with volume info
authornorbert.bizet <norbert.bizet@baculasystems.com>
Tue, 1 Mar 2022 14:48:08 +0000 (09:48 -0500)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:27 +0000 (09:03 +0100)
bacula/src/stored/cloud_dev.c

index 80547eca60fad97b522a693e9fbe141a49c3c394..c495ae3e548c96e8b7bd750cfded676b3a7ce9d8 100644 (file)
@@ -1792,6 +1792,10 @@ bool cloud_dev::truncate(DCR *dcr)
    dcr->VolCatInfo.VolLastPartBytes = 0;
    dcr->VolCatInfo.VolCatCloudParts = 0;
 
+   /* reset VolCatBytes to zero */
+   /* so dir_update_volume_info() will trigger update */
+   dcr->VolCatInfo.VolCatBytes = 0;
+
    /* wrap the uploads in a parts ilist */
    transfer *tpkt;
    foreach_alist(tpkt, dcr->uploads) {