Skip to content

Commit f474754

Browse files
committed
nit: increment row at the end of an iteration
1 parent e8a066e commit f474754

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ydb/core/tx/columnshard/tables_manager.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,6 @@ bool TTablesManager::InitFromDB(NIceDb::TNiceDb& db) {
172172
Y_ABORT_UNLESS(info.ParseFromString(rowset.GetValue<Schema::SchemaPresetVersionInfo::InfoProto>()));
173173
AFL_DEBUG(NKikimrServices::TX_COLUMNSHARD)("event", "load_preset")("preset_id", id)("snapshot", version)(
174174
"version", info.HasSchema() ? info.GetSchema().GetVersion() : -1);
175-
if (!rowset.Next()) {
176-
timer.AddLoadingFail();
177-
return false;
178-
}
179175

180176
AFL_VERIFY(info.HasSchema());
181177
AFL_INFO(NKikimrServices::TX_COLUMNSHARD)("event", "index_schema")("preset_id", id)("snapshot", version)(
@@ -190,6 +186,11 @@ bool TTablesManager::InitFromDB(NIceDb::TNiceDb& db) {
190186
} else {
191187
PrimaryIndex->RegisterOldSchemaVersion(version, schemaInitializationData);
192188
}
189+
190+
if (!rowset.Next()) {
191+
timer.AddLoadingFail();
192+
return false;
193+
}
193194
}
194195
}
195196

0 commit comments

Comments
 (0)