Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
swalrus1 committed Nov 29, 2024
1 parent b65d241 commit 3f1f361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ydb/core/tx/schemeshard/common/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ bool TTTLValidator::ValidateUnit(const NScheme::TTypeInfo columnType, NKikimrSch
}

bool TTTLValidator::ValidateTiers(const google::protobuf::RepeatedPtrField<NKikimrSchemeOp::TTTLSettings_TTier>& tiers, TString& errStr) {
for (ui64 i = 0; i < tiers.size(); ++i) {
for (i64 i = 0; i < tiers.size(); ++i) {
const auto& tier = tiers[i];
if (!tier.HasApplyAfterSeconds()) {
errStr = TStringBuilder() << "Tier " << i << ": missing ApplyAfterSeconds";
Expand All @@ -73,7 +73,7 @@ bool TTTLValidator::ValidateTiers(const google::protobuf::RepeatedPtrField<NKiki
}
switch (tier.GetActionCase()) {
case NKikimrSchemeOp::TTTLSettings_TTier::kDelete:
if (i + 1 != ttlSettings.TiersSize()) {
if (i + 1 != tiers.size()) {
errStr = TStringBuilder() << "Tier " << i << ": only the last tier in TTL settings can have Delete action";
return false;
}
Expand Down

0 comments on commit 3f1f361

Please sign in to comment.