From: Or Friedmann Date: Thu, 2 Jan 2020 09:51:00 +0000 (+0200) Subject: cls/rgw: when object is versioned and lc transition it, the object is becoming non... X-Git-Tag: v14.2.8~78^2~18^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F32057%2Fhead;p=ceph.git cls/rgw: when object is versioned and lc transition it, the object is becoming non-current when object is versioned and lc transition it, the object is becoming non-current Signed-off-by: Or Friedmann Fixes: https://tracker.ceph.com/issues/43444 (cherry picked from commit 5f37ca283141df76a6f698ae4d7a23772b8b9e1b) --- diff --git a/src/cls/rgw/cls_rgw.cc b/src/cls/rgw/cls_rgw.cc index 0d0798b44a1eb..96dbab343f6f1 100644 --- a/src/cls/rgw/cls_rgw.cc +++ b/src/cls/rgw/cls_rgw.cc @@ -1502,7 +1502,7 @@ static int rgw_bucket_link_olh(cls_method_context_t hctx, bufferlist *in, buffer // current epoch and sorts after the current instance const bool promote = (olh.get_epoch() > prev_epoch) || (olh.get_epoch() == prev_epoch && - olh.get_entry().key.instance > op.key.instance); + olh.get_entry().key.instance >= op.key.instance); if (olh_found) { const string& olh_tag = olh.get_tag();