Skip to content

Commit 27d30f4

Browse files
committed
Don't scan protocol 19 buckets for eviction
1 parent a2adbb1 commit 27d30f4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/bucket/Bucket.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -845,9 +845,11 @@ Bucket::scanForEviction(AbstractLedgerTxn& ltx, EvictionIterator& iter,
845845
std::optional<EvictionMetrics>& metrics)
846846
{
847847
ZoneScoped;
848-
if (isEmpty())
848+
if (isEmpty() ||
849+
protocolVersionIsBefore(getBucketVersion(shared_from_this()),
850+
ProtocolVersion::V_20))
849851
{
850-
// EOF
852+
// EOF, skip to next bucket
851853
return false;
852854
}
853855

0 commit comments

Comments
 (0)