diff --git a/src/storage/v2/inmemory/label_property_index.cpp b/src/storage/v2/inmemory/label_property_index.cpp index 59b12a779..6f23e78a6 100644 --- a/src/storage/v2/inmemory/label_property_index.cpp +++ b/src/storage/v2/inmemory/label_property_index.cpp @@ -160,7 +160,7 @@ void InMemoryLabelPropertyIndex::RemoveObsoleteEntries(uint64_t oldest_active_st continue; } - if ((next_it != index_acc.end() && it->vertex == next_it->vertex && it->value == next_it->value) || + if ((next_it != index_acc.end() && it->vertex == next_it->vertex) || !AnyVersionHasLabelProperty(*it->vertex, label_property.first, label_property.second, it->value, oldest_active_start_timestamp)) { index_acc.remove(*it);