From 7e2f9eb03b85f07028a2af1102f9b9960a37fe06 Mon Sep 17 00:00:00 2001 From: Christopher Hoffman Date: Tue, 28 Oct 2025 12:46:34 +0000 Subject: [PATCH] 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 --- src/client/Client.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/Client.cc b/src/client/Client.cc index d865dd7c4f68d..dec0dbe989ed8 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(); -- 2.39.5