From: myoungwon oh Date: Tue, 18 May 2021 05:38:05 +0000 (+0900) Subject: osd: fix wrong input when calling recover_object() X-Git-Tag: v17.1.0~1906^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F41373%2Fhead;p=ceph.git osd: fix wrong input when calling recover_object() Iterating the obc' clones, recover_object() should check correspoding adjacent clones. fixes: https://tracker.ceph.com/issues/50806 Signed-off-by: Myoungwon Oh --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 3ba1a62aa288..e530e1ab4e8e 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -3414,7 +3414,7 @@ int PrimaryLogPG::get_manifest_ref_count(ObjectContextRef obc, std::string& fp_o if (!clone_obc) { break; } - if (recover_adjacent_clones(obc, op)) { + if (recover_adjacent_clones(clone_obc, op)) { return -EAGAIN; } get_adjacent_clones(clone_obc, obc_l, obc_g);