From: Christopher Hoffman Date: Tue, 28 Oct 2025 12:46:34 +0000 (+0000) Subject: client: Do not check file size during trim read X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7e2f9eb03b85f07028a2af1102f9b9960a37fe06;p=ceph.git client: Do not check file size during trim read The commit 154b86743b52 reverted part of the fix seen in 2b74598afc. This commit will reapply any missing changes of the fix. Fixes: https://tracker.ceph.com/issues/73416 Signed-off-by: Christopher Hoffman --- diff --git a/src/client/Client.cc b/src/client/Client.cc index d865dd7c4f6..dec0dbe989e 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -11633,7 +11633,7 @@ retry: // C_Read_Sync_NonBlocking::finish(). // trim read based on file size? - if (std::cmp_greater_equal(offset, in->effective_size()) || (size == 0)) { + if (size == 0) { // zero byte read requested -- therefore just release managed // pointers and complete the C_Read_Finisher immediately with 0 bytes Context *iof = iofinish.release();