Skip to content

Commit

Permalink
[XrdCl] Fix centos compilation errors in xrdreply.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Simon authored and simonmichal committed Jan 26, 2022
1 parent c5102d5 commit c64d581
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/XrdApps/RecordPlugin/XrdClAction.hh
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ namespace XrdCl {
//--------------------------------------------------------------------------
inline std::string ToString()
{
using msecond_t = std::chrono::duration<uint64_t, std::milli>;

std::stringstream ss;
ss << id << ',';
ss << Name() << ',';
Expand Down
6 changes: 4 additions & 2 deletions src/XrdApps/RecordPlugin/XrdClRecorder.hh
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@
#include "XrdCl/XrdClConstants.hh"
#include "XrdCl/XrdClDefaultEnv.hh"
#include "XrdCl/XrdClLog.hh"

#include "XrdClAction.hh"

#include <mutex>
#include <fcntl.h>

namespace XrdCl
{
//------------------------------------------------------------------------------
Expand Down Expand Up @@ -94,7 +96,7 @@ class Recorder: public FilePlugIn
else
btsWritten += rc;
}
while( btsWritten < entry.size() );
while( size_t( btsWritten ) < entry.size() );
return true;;
}

Expand Down
1 change: 0 additions & 1 deletion src/XrdApps/RecordPlugin/XrdClRecorderPlugin.hh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class RecorderFactory : public PlugInFactory
//----------------------------------------------------------------------------
RecorderFactory( const std::map<std::string, std::string>* config )
{
Log* log = DefaultEnv::GetLog();
if( config )
{
auto itr = config->find( "output" );
Expand Down
2 changes: 1 addition & 1 deletion src/XrdApps/RecordPlugin/XrdClReplay.cc
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ std::unordered_map<File*, action_list> ParseInput( const std::string &path )
std::string action = tokens[1]; // action name (e.g. Open)
uint64_t start = std::stoull( tokens[2] ); // start time
std::string args = tokens[3]; // operation arguments
uint64_t stop = std::stoull( tokens[4] ); // stop time
// uint64_t stop = std::stoull( tokens[4] ); // stop time
std::string status = tokens[5]; // operation status
std::string resp = tokens[6]; // server response
if( !files.count( id ) )
Expand Down

0 comments on commit c64d581

Please sign in to comment.