Skip to content

Commit

Permalink
return error code on read error (#49)
Browse files Browse the repository at this point in the history
return read return value when triggering error while read
  • Loading branch information
Jo-stfc authored and root committed Sep 22, 2023
1 parent cfee4f0 commit 04fabbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdCeph/XrdCephPosix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ ssize_t ceph_posix_nonstriper_pread(int fd, void *buf, size_t count, off64_t off
XrdSysMutexHelper lock(fr->statsMutex);
fr->rdcount++;
} else {
logwrapper( (char*)"Error while read\n");
logwrapper( (char*)"Error while read: %d\n", bytes_read);
}
return bytes_read;
} catch (std::bad_alloc&) {
Expand Down

0 comments on commit 04fabbb

Please sign in to comment.