Skip to content

Commit

Permalink
[XrdCl] Record plugin: don't serialize missing rsp.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Jan 26, 2022
1 parent c47c41f commit ab7d583
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/XrdApps/RecordPlugin/XrdClAction.hh
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ namespace XrdCl {

void Serialize( AnyObject *response )
{
if( !response )
return;
StatInfo *info = nullptr;
response->Get( info );
std::stringstream ss;
Expand Down Expand Up @@ -236,6 +238,8 @@ namespace XrdCl {

void Serialize( AnyObject *response )
{
if( !response )
return;
ChunkInfo *ptr = nullptr;
response->Get( ptr );
serialrsp = std::to_string( ptr->length );
Expand Down Expand Up @@ -269,6 +273,8 @@ namespace XrdCl {

void Serialize( AnyObject *response )
{
if( !response )
return;
PageInfo *ptr = nullptr;
response->Get( ptr );
serialrsp = std::to_string( ptr->GetLength() ) + ';' +
Expand Down Expand Up @@ -412,6 +418,8 @@ namespace XrdCl {

void Serialize( AnyObject *response )
{
if( !response )
return;
VectorReadInfo *ptr = nullptr;
response->Get( ptr );
std::stringstream ss;
Expand Down Expand Up @@ -480,6 +488,8 @@ namespace XrdCl {

void Serialize( AnyObject *response )
{
if( !response )
return;
Buffer *ptr = nullptr;
response->Get( ptr );
serialrsp = std::to_string( ptr->GetSize() );
Expand Down

0 comments on commit ab7d583

Please sign in to comment.