]> git.proxmox.com Git - proxmox-backup.git/commit
fix #5801: backup_manager: make api call on datastore update
authorGabriel Goller <g.goller@proxmox.com>
Fri, 18 Oct 2024 10:01:22 +0000 (12:01 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 22 Nov 2024 08:15:58 +0000 (09:15 +0100)
commitcc6fc6a540728c6677b4d1c4bc65103c0f1f6f15
treeb57823cc892e58e83dc6ac167235b174c2f8fa86
parent41b97b24542592d1bf736349c18406446f89e7e2
fix #5801: backup_manager: make api call on datastore update

When updating the datastore config using `proxmox-backup-manager` we
need to make an api-call, because the api-route starts a tokio task to
update the proxy-cache and the client will kill the task if we don't
wait. With an api-call the tokio task will be executed on the api
process and runs in the background while the endpoint handler has
already returned.

Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
src/bin/proxmox_backup_manager/datastore.rs