Skip to content

Commit

Permalink
clear checksum on write completion
Browse files Browse the repository at this point in the history
  • Loading branch information
Jo-stfc committed Dec 16, 2024
1 parent e8d9f6a commit 192f76d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/XrdCeph/XrdCephPosix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ int checkAndCreateStriper(unsigned int cephPoolIdx, std::string &userAtPool, con
}
int rc = g_cluster[cephPoolIdx]->ioctx_create(file.pool.c_str(), *ioctx);
if (rc != 0) {
logwrapper((char*)"checkAndCreateStriper : ioctx_create failed, user@pool = %s", userAtPool);
logwrapper((char*)"checkAndCreateStriper : ioctx_create failed, user@pool = %s", userAtPool.c_str());
logwrapper((char*)"checkAndCreateStriper : ioctx_create failed, rc = %d", rc);
cluster->shutdown();
delete cluster;
Expand Down Expand Up @@ -771,6 +771,9 @@ int ceph_posix_close(int fd) {
lastAsyncAge = 1.0 * (now.tv_sec - fr->lastAsyncSubmission.tv_sec)
+ 0.000001 * (now.tv_usec - fr->lastAsyncSubmission.tv_usec);
}
if (fr->bytesWritten > 0){
ceph_posix_fremovexattr(fd,"XrdCks.adler32");
}
logwrapper((char*)"ceph_close: closed fd %d for file %s, read ops count %d, write ops count %d, "
"async write ops %d/%d, async pending write bytes %ld, "
"async read ops %d/%d, bytes written/max offset %ld/%ld, "
Expand Down

0 comments on commit 192f76d

Please sign in to comment.