Skip to content

Commit

Permalink
[XrdCl] When calling File::Stat use file handle instead of path
Browse files Browse the repository at this point in the history
  • Loading branch information
ljanyst committed Sep 30, 2013
1 parent 30c248d commit a953c3b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/XrdCl/XrdClFileStateHandler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -487,11 +487,10 @@ namespace XrdCl
Message *msg;
ClientStatRequest *req;
std::string path = pFileUrl->GetPath();
MessageUtils::CreateRequest( msg, req, path.length() );
MessageUtils::CreateRequest( msg, req );

req->requestid = kXR_stat;
req->dlen = path.length();
msg->Append( path.c_str(), req->dlen, 24 );
memcpy( req->fhandle, pFileHandle, 4 );

MessageSendParams params;
params.timeout = timeout;
Expand Down

0 comments on commit a953c3b

Please sign in to comment.