[pbs-devel] [PATCH proxmox-backup v2] api2/reader: asyncify the reader worker task

Dietmar Maurer dietmar at proxmox.com
Fri Jan 29 09:17:51 CET 2021


> On 01/29/2021 8:01 AM Dominik Csapak <d.csapak at proxmox.com> wrote:
> 
>  
> On 1/29/21 7:05 AM, Dietmar Maurer wrote:
> > Why did you change the _guard lifetime?
> 
> how so?
> 
> before this patch the guard was moved to the 'map' closure of
> the future::select call
> so it did go out of scope after either future (req_fut, abort_future) 
> resolved
> 
> now i moved it in the async move block of the worker, and goes out of
> scope after the future resolves

OK, I can see it now - will apply the patch.





More information about the pbs-devel mailing list