metabase: Move cheaper conditions to the front in ListWithCursor() #1691

Merged
fyrchik merged 1 commit from fyrchik/frostfs-node:metabase-listwithcursor into master 2025-03-20 12:52:38 +00:00

View file

@ -251,7 +251,7 @@ func selectNFromBucket(bkt *bbolt.Bucket, // main bucket
}
expEpoch, hasExpEpoch := hasExpirationEpoch(&o)
if !objectLocked(bkt.Tx(), cnt, obj) && hasExpEpoch && expEpoch < currEpoch {
if hasExpEpoch && expEpoch < currEpoch && !objectLocked(bkt.Tx(), cnt, obj) {
continue
}