]> git.proxmox.com Git - proxmox-backup.git/commit
server/worker_task: simplify task log writing
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 29 Oct 2020 09:50:13 +0000 (10:50 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 29 Oct 2020 11:41:20 +0000 (12:41 +0100)
commit264779e70460d91cd65f0f313deae8ee2f9ecefa
tree9eeb3de5f13c3a35384a8fe6241f6a9597747c21
parent7f3d91003c377e328fde03e23faf4004fc46d0bd
server/worker_task: simplify task log writing

instead of prerotating 1000 tasks
(which resulted in 2 writes each time an active worker was finished)
simply append finished tasks to the archive (which will be rotated)

page cache should be good enough so that we can get the task logs fast

since existing installations might have an 'index' file, we
still have to read tasks from there, but only if it exists

this simplifies the TaskListInfoIterator a good amount

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/server/worker_task.rs