mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-04-28 15:16:21 +00:00
client: backup writer: fix regression in progress output
Fixes a regression introduced when switching from the plain string to be used for archive names to the BackupArchiveName api type in commitaddfae26
("api types: introduce `BackupArchiveName` type"). The archive name now always is stored including the server archive name extension. Adapt the check for which archive types to display the progress log output to reflect this change. Fixes:addfae26
("api types: introduce `BackupArchiveName` type") Reported-by: Max Carrara <m.carrara@proxmox.com> Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
parent
963401348a
commit
63da9f8397
@ -847,9 +847,9 @@ impl BackupWriter {
|
||||
let (upload_queue, upload_result) =
|
||||
Self::append_chunk_queue(h2.clone(), wid, append_chunk_path, uploaded_len.clone());
|
||||
|
||||
let progress_handle = if archive.ends_with(".img")
|
||||
|| archive.ends_with(".pxar")
|
||||
|| archive.ends_with(".ppxar")
|
||||
let progress_handle = if archive.ends_with(".img.fidx")
|
||||
|| archive.ends_with(".pxar.didx")
|
||||
|| archive.ends_with(".ppxar.didx")
|
||||
{
|
||||
let counters = counters.clone();
|
||||
Some(tokio::spawn(async move {
|
||||
|
Loading…
Reference in New Issue
Block a user