count inmemoryParts that have not been taken for merge (#5447)

This commit is contained in:
Jiajing LU 2024-02-01 20:06:28 +08:00 committed by Aliaksandr Valialkin
parent 07e6342915
commit 9c75e3ee15
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -578,7 +578,7 @@ func (ddb *datadb) needAssistedMergeForInmemoryPartsLocked() bool {
}
n := 0
for _, pw := range ddb.inmemoryParts {
if pw.isInMerge {
if !pw.isInMerge {
n++
}
}