when object is versioned and lc transition it, the object is becoming non-current
Signed-off-by: Or Friedmann <ofriedma@redhat.com>
Fixes: https://tracker.ceph.com/issues/43444
(cherry picked from commit
5f37ca283141df76a6f698ae4d7a23772b8b9e1b)
// 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();