]> git.proxmox.com Git - pve-http-server.git/commit
anyevent: move unlink from http-server to endpoint
authorLorenz Stechauner <l.stechauner@proxmox.com>
Tue, 31 Aug 2021 10:16:28 +0000 (12:16 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 4 Oct 2021 08:00:23 +0000 (10:00 +0200)
commit7fb356b79ee8904cdc24a7e0b3a54368bd3dd1b4
treefbc2427df24cb95f5e6d844b8dc8266963e02809
parent28a4b9a4240d2972fe35bf9324b023373213ebc2
anyevent: move unlink from http-server to endpoint

any uploaded file has to be deleted by the corrosponding
endpoint. the file upload was only used by the 'upload to
storage' feature in pve.

this change allows the endpoint to delete the file itself,
making the old and racey`sleep 1` (waiting until the worker
has opened the file) obsolete.

this change breaks all pve-manager versions, in which the
worker does not unlink the temp file itself.

Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
src/PVE/APIServer/AnyEvent.pm