Skip to content

Commit

Permalink
nit: increment row at the end of an iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
swalrus1 committed Dec 12, 2024
1 parent e8a066e commit f474754
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ydb/core/tx/columnshard/tables_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@ bool TTablesManager::InitFromDB(NIceDb::TNiceDb& db) {
Y_ABORT_UNLESS(info.ParseFromString(rowset.GetValue<Schema::SchemaPresetVersionInfo::InfoProto>()));
AFL_DEBUG(NKikimrServices::TX_COLUMNSHARD)("event", "load_preset")("preset_id", id)("snapshot", version)(
"version", info.HasSchema() ? info.GetSchema().GetVersion() : -1);
if (!rowset.Next()) {
timer.AddLoadingFail();
return false;
}

AFL_VERIFY(info.HasSchema());
AFL_INFO(NKikimrServices::TX_COLUMNSHARD)("event", "index_schema")("preset_id", id)("snapshot", version)(
Expand All @@ -190,6 +186,11 @@ bool TTablesManager::InitFromDB(NIceDb::TNiceDb& db) {
} else {
PrimaryIndex->RegisterOldSchemaVersion(version, schemaInitializationData);
}

if (!rowset.Next()) {
timer.AddLoadingFail();
return false;
}
}
}

Expand Down

0 comments on commit f474754

Please sign in to comment.