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: v15.1.0~97^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F32458%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 --- diff --git a/src/cls/rgw/cls_rgw.cc b/src/cls/rgw/cls_rgw.cc index 209ec2340cf..55eb79b92db 100644 --- a/src/cls/rgw/cls_rgw.cc +++ b/src/cls/rgw/cls_rgw.cc @@ -1480,7 +1480,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();