From bd179359d99a4fca265c9d565567399920b3e3c3 Mon Sep 17 00:00:00 2001 From: Or Friedmann Date: Thu, 2 Jan 2020 11:51:00 +0200 Subject: [PATCH] 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) --- src/cls/rgw/cls_rgw.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5