@@ -6230,13 +6230,15 @@ Y_UNIT_TEST_SUITE(TFlatTableExecutor_BTreeIndex) {
6230
6230
}
6231
6231
};
6232
6232
6233
- Y_UNIT_TEST (EnableLocalDBBtreeIndex_Default) { // uses b-tree index
6233
+ Y_UNIT_TEST (EnableLocalDBBtreeIndex_Default) { // uses flat index
6234
6234
TMyEnvBase env;
6235
6235
TRowsModel rows;
6236
6236
6237
6237
auto &appData = env->GetAppData ();
6238
6238
UNIT_ASSERT_VALUES_EQUAL (appData.FeatureFlags .HasEnableLocalDBBtreeIndex (), false );
6239
6239
UNIT_ASSERT_VALUES_EQUAL (appData.FeatureFlags .HasEnableLocalDBFlatIndex (), false );
6240
+ UNIT_ASSERT_VALUES_EQUAL (appData.FeatureFlags .GetEnableLocalDBBtreeIndex (), false );
6241
+ UNIT_ASSERT_VALUES_EQUAL (appData.FeatureFlags .GetEnableLocalDBFlatIndex (), true );
6240
6242
auto counters = GetSharedPageCounters (env);
6241
6243
int readRows = 0 , failedAttempts = 0 ;
6242
6244
@@ -6252,8 +6254,8 @@ Y_UNIT_TEST_SUITE(TFlatTableExecutor_BTreeIndex) {
6252
6254
env.SendSync (new NFake::TEvCompact (TRowsModel::TableId));
6253
6255
env.WaitFor <NFake::TEvCompacted>();
6254
6256
6255
- // all pages are always kept in shared cache (except flat index)
6256
- UNIT_ASSERT_VALUES_EQUAL (counters->ActivePages ->Val (), 334 );
6257
+ // all pages are always kept in shared cache
6258
+ UNIT_ASSERT_VALUES_EQUAL (counters->ActivePages ->Val (), 290 );
6257
6259
6258
6260
env.SendSync (new NFake::TEvExecute{ new TTxFullScan (readRows, failedAttempts) });
6259
6261
UNIT_ASSERT_VALUES_EQUAL (readRows, 1000 );
@@ -6266,7 +6268,7 @@ Y_UNIT_TEST_SUITE(TFlatTableExecutor_BTreeIndex) {
6266
6268
// after restart we have no pages in private cache
6267
6269
env.SendSync (new NFake::TEvExecute{ new TTxFullScan (readRows, failedAttempts) }, true );
6268
6270
UNIT_ASSERT_VALUES_EQUAL (readRows, 1000 );
6269
- UNIT_ASSERT_VALUES_EQUAL (failedAttempts, 330 );
6271
+ UNIT_ASSERT_VALUES_EQUAL (failedAttempts, 286 );
6270
6272
}
6271
6273
6272
6274
Y_UNIT_TEST (EnableLocalDBBtreeIndex_True) { // uses b-tree index
0 commit comments