File tree 2 files changed +3
-2
lines changed
ydb/core/tx/columnshard/engines/storage/optimizer/lcbuckets/constructor
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ bool TOptimizerPlannerConstructor::DoIsEqualTo(const IOptimizerPlannerConstructo
22
22
return false ;
23
23
}
24
24
for (ui32 i = 0 ; i < Levels.size (); ++i) {
25
- if (!Levels[i]->IsEqualTo (*itemClass->Levels [i])) {
25
+ if (!Levels[i]->IsEqualTo (*itemClass->Levels [i]. GetObjectPtrVerified () )) {
26
26
return false ;
27
27
}
28
28
}
Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ class TZeroLevelConstructor: public ILevelConstructor {
19
19
virtual bool DoDeserializeFromProto (const NKikimrSchemeOp::TCompactionLevelConstructorContainer& proto) override ;
20
20
virtual void DoSerializeToProto (NKikimrSchemeOp::TCompactionLevelConstructorContainer& proto) const override ;
21
21
virtual bool IsEqualToSameClass (const ILevelConstructor& item) const override {
22
- return PortionsLiveDuration == item.PortionsLiveDuration && ExpectedBlobsSize == item.ExpectedBlobsSize ;
22
+ const auto & itemCast = dynamic_cast <const TZeroLevelConstructor&>(item);
23
+ return PortionsLiveDuration == itemCast.PortionsLiveDuration && ExpectedBlobsSize == itemCast.ExpectedBlobsSize ;
23
24
}
24
25
25
26
static const inline TFactory::TRegistrator<TZeroLevelConstructor> Registrator = TFactory::TRegistrator<TZeroLevelConstructor>(GetClassNameStatic());
You can’t perform that action at this time.
0 commit comments