aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchertus <azuikov@ydb.tech>2023-04-10 18:23:06 +0300
committerchertus <azuikov@ydb.tech>2023-04-10 18:23:06 +0300
commitf8b3a6786752ad2143517db10ad2333ed1eb8a09 (patch)
tree1537a28c98b4b7ab5114cbf6bc25242db769cb5a
parente6f2c83e4e20c59aa56cce679e1ebd3ff097cb79 (diff)
downloadydb-f8b3a6786752ad2143517db10ad2333ed1eb8a09.tar.gz
fix portionInfo.CanHaveDups()
-rw-r--r--ydb/core/tx/columnshard/engines/portion_info.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/core/tx/columnshard/engines/portion_info.h b/ydb/core/tx/columnshard/engines/portion_info.h
index ae727f49f89..d3908ead497 100644
--- a/ydb/core/tx/columnshard/engines/portion_info.h
+++ b/ydb/core/tx/columnshard/engines/portion_info.h
@@ -55,7 +55,7 @@ struct TPortionInfo {
bool Produced() const { return Meta.Produced != TPortionMeta::UNSPECIFIED; }
bool Valid() const { return !Empty() && Produced() && HasMinMax(FirstPkColumn); }
bool IsInserted() const { return Meta.Produced == TPortionMeta::INSERTED; }
- bool CanHaveDups() const { return !Valid(); /* || IsInserted(); */ }
+ bool CanHaveDups() const { return !Produced(); /* || IsInserted(); */ }
bool CanIntersectOthers() const { return !Valid() || IsInserted(); }
size_t NumRecords() const { return Records.size(); }