Commit 9a6c7f13 authored by Elvin Sindrilaru's avatar Elvin Sindrilaru
Browse files

XROOTD: Remove verbose opaque info printout when doing an open on the diskserver

        Fix timing printout
parent 8a13226e
......@@ -292,7 +292,7 @@ XrdxCastor2OfsFile::open(const char* path,
xcastor::Timing open_timing("open");
TIMING("START", &open_timing);
XrdOucString spath = path;
xcastor_debug("path=%s, opaque=%s", path, opaque);
xcastor_debug("path=%s", path);
XrdOucString newpath = "";
XrdOucString newopaque = opaque;
......@@ -532,12 +532,13 @@ XrdxCastor2OfsFile::close()
sz_file = mStatInfo.st_size;
}
int errorcode = (rc ? error.getErrInfo() : rc);
char* errormsg = (rc ? (char*)error.getErrText() : (char*)0);
int errc = (rc ? error.getErrInfo() : rc);
char* errmsg = (rc ? (char*)error.getErrText() : (char*)0);
xcastor_info("send diskmgr errc=%i, errmsg=%s", errc, (errmsg ? errmsg : ""));
int dm_errno = mover_close_file(mDiskMgrPort, mReqId.c_str(), sz_file,
const_cast<const char*>(ckSumalg),
const_cast<const char*>(ckSumbuf),
&errorcode, &errormsg);
&errc, &errmsg);
// If failed to commit to diskmanager then return error
if (dm_errno)
......
......@@ -91,7 +91,7 @@ Timing::Print()
maintag.c_str(), p->tag.c_str(), n->tag.c_str(),
(float)((n->tv.tv_sec - p->tv.tv_sec) * 1000000 +
(n->tv.tv_usec - p->tv.tv_usec)) / 1000.0);
cerr << msg;
cerr << msg << std::endl;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment