Skip to content

Commit

Permalink
fix empty variable usage (#11926)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmorozov333 authored Nov 25, 2024
1 parent 199d47d commit 346aedc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ void TTieringActualizer::DoAddPortion(const TPortionInfo& portion, const TAddExt
AFL_VERIFY(!PortionsInfo.contains(portion.GetPortionId()))("id", portion.GetPortionId())("path_id", portion.GetPathId());
AFL_VERIFY(!NewPortionIds.contains(portion.GetPortionId()))("id", portion.GetPortionId())("path_id", portion.GetPathId());
}
if (MaxByPortionId.contains(portion.GetPortionId())) {
if (!Tiering || MaxByPortionId.contains(portion.GetPortionId())) {
AddPortionImpl(portion, addContext.GetNow());
} else {
auto schema = portion.GetSchema(VersionedIndex);
if (*TieringColumnId == schema->GetIndexInfo().GetPKColumnIds().front()) {
if (*TValidator::CheckNotNull(TieringColumnId) == schema->GetIndexInfo().GetPKColumnIds().front()) {
NYDBTest::TControllers::GetColumnShardController()->OnMaxValueUsage();
auto max = NArrow::TStatusValidator::GetValid(portion.GetMeta().GetFirstLastPK().GetFirst().Column(0).GetScalar(0));
AFL_VERIFY(MaxByPortionId.emplace(portion.GetPortionId(), max).second);
Expand Down

0 comments on commit 346aedc

Please sign in to comment.