From: Christopher Hoffman Date: Wed, 23 Jul 2025 19:08:08 +0000 (+0000) Subject: client: Match functionality of nonblocking_read_sync read_sync X-Git-Tag: testing/wip-vshankar-testing-20260120.085915-debug^2~13^2~34 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1d09c234927c4d9feabf603af0660e900f4526c0;p=ceph-ci.git client: Match functionality of nonblocking_read_sync read_sync 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 --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 92b33cbd90d..cddf40d92f2 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -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;