Skip to content

Commit

Permalink
[SSI] Code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Jan 17, 2018
1 parent 9a536e8 commit b0c4ff2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/XrdSsi/XrdSsiRRInfo.hh
Expand Up @@ -40,7 +40,7 @@ public:

static const unsigned int idMax = 16777215;

enum Opc {Rxq = 0, Rwt = 1, Can = 2, Rxz = 3};
enum Opc {Rxq = 0, Rwt = 1, Can = 2};

inline void Cmd(Opc cmd)
{reqCmd = static_cast<unsigned char>(cmd);}
Expand Down
5 changes: 2 additions & 3 deletions src/XrdSsi/XrdSsiTaskReal.cc
Expand Up @@ -482,13 +482,12 @@ bool XrdSsiTaskReal::SendRequest(const char *node)
rrInfo.Size(reqBlen);
tStat = isWrite;

// If we are writing a zero length message, we must handle this as a separate
// type of operation as zero length messages are normally deep-sixed.
// If we are writing a zero length message, we must fake a request as zero
// zero length messages are normally deep-sixed.
//
if (!reqBlen)
{reqBuff = &zedData;
reqBlen = 1;
rrInfo.Cmd(XrdSsiRRInfo::Rxz);
}

// Issue the write
Expand Down

0 comments on commit b0c4ff2

Please sign in to comment.