@@ -113,6 +113,31 @@ bool TTxInit::ReadEverything(TTransactionContext& txc, const TActorContext& ctx)
113
113
Self->InsertTable .swap (localInsertTable);
114
114
}
115
115
116
+ {
117
+ ACFL_DEBUG (" step" , " TTablesManager::Load_Start" );
118
+ TTablesManager tManagerLocal (Self->StoragesManager , Self->TabletID ());
119
+ {
120
+ TMemoryProfileGuard g (" TTxInit/TTablesManager" );
121
+ if (!tManagerLocal.InitFromDB (db)) {
122
+ ACFL_ERROR (" step" , " TTablesManager::InitFromDB_Fails" );
123
+ return false ;
124
+ }
125
+ }
126
+ {
127
+ TMemoryProfileGuard g (" TTxInit/LoadIndex" );
128
+ if (!tManagerLocal.LoadIndex (dbTable)) {
129
+ ACFL_ERROR (" step" , " TTablesManager::LoadIndex_Fails" );
130
+ return false ;
131
+ }
132
+ }
133
+ Self->TablesManager = std::move (tManagerLocal);
134
+
135
+ Self->Counters .GetTabletCounters ()->SetCounter (COUNTER_TABLES, Self->TablesManager .GetTables ().size ());
136
+ Self->Counters .GetTabletCounters ()->SetCounter (COUNTER_TABLE_PRESETS, Self->TablesManager .GetSchemaPresets ().size ());
137
+ Self->Counters .GetTabletCounters ()->SetCounter (COUNTER_TABLE_TTLS, Self->TablesManager .GetTtl ().PathsCount ());
138
+ ACFL_DEBUG (" step" , " TTablesManager::Load_Finish" );
139
+ }
140
+
116
141
{
117
142
ACFL_DEBUG (" step" , " TTxController::Load_Start" );
118
143
TMemoryProfileGuard g (" TTxInit/TTxController" );
@@ -147,31 +172,6 @@ bool TTxInit::ReadEverything(TTransactionContext& txc, const TActorContext& ctx)
147
172
ACFL_DEBUG (" step" , " TStoragesManager::Load_Finish" );
148
173
}
149
174
150
- {
151
- ACFL_DEBUG (" step" , " TTablesManager::Load_Start" );
152
- TTablesManager tManagerLocal (Self->StoragesManager , Self->TabletID ());
153
- {
154
- TMemoryProfileGuard g (" TTxInit/TTablesManager" );
155
- if (!tManagerLocal.InitFromDB (db)) {
156
- ACFL_ERROR (" step" , " TTablesManager::InitFromDB_Fails" );
157
- return false ;
158
- }
159
- }
160
- {
161
- TMemoryProfileGuard g (" TTxInit/LoadIndex" );
162
- if (!tManagerLocal.LoadIndex (dbTable)) {
163
- ACFL_ERROR (" step" , " TTablesManager::LoadIndex_Fails" );
164
- return false ;
165
- }
166
- }
167
- Self->TablesManager = std::move (tManagerLocal);
168
-
169
- Self->Counters .GetTabletCounters ()->SetCounter (COUNTER_TABLES, Self->TablesManager .GetTables ().size ());
170
- Self->Counters .GetTabletCounters ()->SetCounter (COUNTER_TABLE_PRESETS, Self->TablesManager .GetSchemaPresets ().size ());
171
- Self->Counters .GetTabletCounters ()->SetCounter (COUNTER_TABLE_TTLS, Self->TablesManager .GetTtl ().PathsCount ());
172
- ACFL_DEBUG (" step" , " TTablesManager::Load_Finish" );
173
- }
174
-
175
175
{
176
176
TMemoryProfileGuard g (" TTxInit/LongTxWrites" );
177
177
auto rowset = db.Table <Schema::LongTxWrites>().Select ();
0 commit comments