]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
client: Match functionality of nonblocking_read_sync read_sync
authorChristopher Hoffman <choffman@redhat.com>
Wed, 23 Jul 2025 19:08:08 +0000 (19:08 +0000)
committerChristopher Hoffman <choffman@redhat.com>
Wed, 5 Nov 2025 13:59:36 +0000 (13:59 +0000)
If ENOENT is returned from OSDs, set r = 0 to match read_sync
functionality.

Fixes: https://tracker.ceph.com/issues/72143
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
src/client/Client.cc

index 92b33cbd90d2475c4d9e2f1004deee70e5565c4d..cddf40d92f23e57f30b385ec109a1d8283b09ab1 100644 (file)
@@ -11355,7 +11355,7 @@ void Client::C_Read_Sync_NonBlocking::finish(int r)
 
   if (r == -ENOENT) {
     // if we get ENOENT from OSD, assume 0 bytes returned
-    goto success;
+    r = 0;
   } else if (r < 0) {
     // pass error to caller
     goto error;