@@ -31,13 +31,6 @@ bool TCompactColumnEngineChanges::DoApplyChanges(TColumnEngineForLogs& self, TAp
31
31
return TBase::DoApplyChanges (self, context);
32
32
}
33
33
34
- ui32 TCompactColumnEngineChanges::NumSplitInto (const ui32 srcRows) const {
35
- Y_ABORT_UNLESS (srcRows > 1 );
36
- const ui64 totalBytes = TotalBlobsSize ();
37
- const ui32 numSplitInto = (totalBytes / Limits.GranuleSizeForOverloadPrevent ) + 1 ;
38
- return std::max<ui32>(2 , numSplitInto);
39
- }
40
-
41
34
void TCompactColumnEngineChanges::DoWriteIndex (NColumnShard::TColumnShard& self, TWriteIndexContext& context) {
42
35
TBase::DoWriteIndex (self, context);
43
36
}
@@ -75,11 +68,9 @@ void TCompactColumnEngineChanges::DoOnFinish(NColumnShard::TColumnShard& self, T
75
68
NeedGranuleStatusProvide = false ;
76
69
}
77
70
78
- TCompactColumnEngineChanges::TCompactColumnEngineChanges (const TCompactionLimits& limits, std::shared_ptr<TGranuleMeta> granule, const std::vector<std::shared_ptr<TPortionInfo>>& portions, const TSaverContext& saverContext)
79
- : TBase(limits.GetSplitSettings(), saverContext, StaticTypeName())
80
- , Limits(limits)
81
- , GranuleMeta(granule)
82
- {
71
+ TCompactColumnEngineChanges::TCompactColumnEngineChanges (const TSplitSettings& splitSettings, std::shared_ptr<TGranuleMeta> granule, const std::vector<std::shared_ptr<TPortionInfo>>& portions, const TSaverContext& saverContext)
72
+ : TBase(splitSettings, saverContext, StaticTypeName())
73
+ , GranuleMeta(granule) {
83
74
Y_ABORT_UNLESS (GranuleMeta);
84
75
85
76
SwitchedPortions.reserve (portions.size ());
0 commit comments