From 5bed38476aa2957094549869d0d2b4226f8ecc04 Mon Sep 17 00:00:00 2001 From: Michal Simon Date: Thu, 30 Jan 2020 15:43:07 +0100 Subject: [PATCH] [XrdCl] Fix extended-open handler in FileOperations. --- src/XrdCl/XrdClFile.hh | 14 +++++++------- src/XrdCl/XrdClFileOperations.hh | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/XrdCl/XrdClFile.hh b/src/XrdCl/XrdClFile.hh index 4161dccf44e..16fff1d13bc 100644 --- a/src/XrdCl/XrdClFile.hh +++ b/src/XrdCl/XrdClFile.hh @@ -407,10 +407,10 @@ namespace XrdCl //! @return status of the operation //------------------------------------------------------------------------ XRootDStatus WriteV( uint64_t offset, - const struct iovec *iov, - int iovcnt, - ResponseHandler *handler, - uint16_t timeout = 0 ); + const struct iovec *iov, + int iovcnt, + ResponseHandler *handler, + uint16_t timeout = 0 ); //------------------------------------------------------------------------ //! Write scattered buffers in one operation - sync @@ -424,9 +424,9 @@ namespace XrdCl //! @return status of the operation //------------------------------------------------------------------------ XRootDStatus WriteV( uint64_t offset, - const struct iovec *iov, - int iovcnt, - uint16_t timeout = 0 ); + const struct iovec *iov, + int iovcnt, + uint16_t timeout = 0 ); //------------------------------------------------------------------------ //! Performs a custom operation on an open file, server implementation diff --git a/src/XrdCl/XrdClFileOperations.hh b/src/XrdCl/XrdClFileOperations.hh index 6f0c10e3688..2aa152efb99 100644 --- a/src/XrdCl/XrdClFileOperations.hh +++ b/src/XrdCl/XrdClFileOperations.hh @@ -131,7 +131,7 @@ namespace XrdCl inline ResponseHandler* Create( std::function func ) { - return new ExOpenFuncWrapper( this->file, func ); + return make_finalized( new ExOpenFuncWrapper( this->file, func ) ); } //--------------------------------------------------------------------