From 04fabbb877b2a274ba30b927bda7242098e95224 Mon Sep 17 00:00:00 2001 From: Jo-stfc <71326101+Jo-stfc@users.noreply.github.com> Date: Fri, 22 Sep 2023 12:00:16 +0100 Subject: [PATCH] return error code on read error (#49) return read return value when triggering error while read --- src/XrdCeph/XrdCephPosix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XrdCeph/XrdCephPosix.cc b/src/XrdCeph/XrdCephPosix.cc index 950e7f50..4339a80d 100644 --- a/src/XrdCeph/XrdCephPosix.cc +++ b/src/XrdCeph/XrdCephPosix.cc @@ -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&) {