]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
client: Use effective_size in eof read
authorChristopher Hoffman <choffman@redhat.com>
Thu, 8 Aug 2024 19:50:39 +0000 (19:50 +0000)
committerChristopher Hoffman <choffman@redhat.com>
Thu, 14 Aug 2025 20:08:09 +0000 (20:08 +0000)
Fixes: https://tracker.ceph.com/issues/67347
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
src/client/Client.cc

index 3fb9b975354dd2c90a34c3f4c3d5fa1fccafeb7f..b132325fc70b44fa5c3396fb8ffc08360f2ee1aa 100644 (file)
@@ -11636,8 +11636,8 @@ int Client::_read_async(Fh *f, uint64_t off, uint64_t len, bufferlist *bl,
     return 0;
   }
 
-  if (off + len > in->size) {
-    len = in->size - off;    
+  if (off + len > effective_size) {
+    len = effective_size - off;
   }
 
   auto target_len = std::min(len, effective_size - off);