From: norbert.bizet Date: Tue, 1 Mar 2022 14:48:08 +0000 (-0500) Subject: cloud: Fix #8866 reset VolCatBytes to 0 so it's updated with volume info X-Git-Tag: Release-11.3.2~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe255592a7f819b26bf730d70030872bbc4bab28;p=thirdparty%2Fbacula.git cloud: Fix #8866 reset VolCatBytes to 0 so it's updated with volume info --- diff --git a/bacula/src/stored/cloud_dev.c b/bacula/src/stored/cloud_dev.c index 80547eca6..c495ae3e5 100644 --- a/bacula/src/stored/cloud_dev.c +++ b/bacula/src/stored/cloud_dev.c @@ -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) {