Skip to content

Commit

Permalink
[XrdCl] In declarative API handle correctly old
Browse files Browse the repository at this point in the history
servers when querying xattrs.
  • Loading branch information
simonmichal committed Jan 10, 2020
1 parent 61eff74 commit 12b479b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/XrdCl/XrdClOperationHandlers.hh
Expand Up @@ -50,7 +50,12 @@ namespace XrdCl
//------------------------------------------------------------------------
void HandleResponse( XRootDStatus *status, AnyObject *response )
{
// status is always OK for bulk response
// status maybe error for old servers not supporting xattrs
if( !status->IsOK() )
{
handler->HandleResponse( status, nullptr );
return;
}

std::vector<XAttrStatus> *bulk = nullptr;
response->Get( bulk );
Expand Down

0 comments on commit 12b479b

Please sign in to comment.