Print

Print


I reverted b2ee725 and committed a new one:  d5c179a

@ljanyst could you please have a look?

In brief, the idea is to create a wrapper object around OpenHandler (the not synchronized one) that is also a ResponseHandler. The wrapper is being used as a callback:
- if the FileStateHandler is being destroyed it also destroys the OpenHandler inside the wrapper
- when the wrapper is being executed as a callback it either delegates the job to OpenHandler if it still exits or does nothing if it was already destroyed

With this patch we never run into the scenario where the File object had been destroyed and then recovery open was successful.


---
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/289#issuecomment-144770258

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1