This repository was archived by the owner on Sep 27, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -28,16 +28,16 @@ void IndexSelectionJob::OnJobInvocation(BrainEnvironment *env) {
2828
2929 // Analyze stats for all the tables.
3030 // TODO: AnalyzeStatsForAllTables crashes sometimes.
31- optimizer::StatsStorage *stats_storage =
32- optimizer::StatsStorage::GetInstance ();
33- ResultType stats_result = stats_storage->AnalyzeStatsForAllTables (txn);
34- if (stats_result != ResultType::SUCCESS) {
35- LOG_ERROR (
36- " Cannot generate stats for table columns. Not performing index "
37- " suggestion..." );
38- txn_manager.AbortTransaction (txn);
39- return ;
40- }
31+ // optimizer::StatsStorage *stats_storage =
32+ // optimizer::StatsStorage::GetInstance();
33+ // ResultType stats_result = stats_storage->AnalyzeStatsForAllTables(txn);
34+ // if (stats_result != ResultType::SUCCESS) {
35+ // LOG_ERROR(
36+ // "Cannot generate stats for table columns. Not performing index "
37+ // "suggestion...");
38+ // txn_manager.AbortTransaction(txn);
39+ // return;
40+ // }
4141
4242 // Query the catalog for new SQL queries.
4343 // New SQL queries are the queries that were added to the system
Original file line number Diff line number Diff line change @@ -101,10 +101,10 @@ int main(int argc, char *argv[]) {
101101 // run both peloton server and the brain together to test the index suggestion
102102 // at the brain end without catalog replication between the server and the
103103 // brain
104- // peloton::settings::SettingsManager::SetBool(
105- // peloton::settings::SettingId::brain, true);
106- // peloton::settings::SettingsManager::SetBool(
107- // peloton::settings::SettingId::rpc_enabled, true);
104+ peloton::settings::SettingsManager::SetBool (
105+ peloton::settings::SettingId::brain, true );
106+ peloton::settings::SettingsManager::SetBool (
107+ peloton::settings::SettingId::rpc_enabled, true );
108108
109109 int exit_code = 0 ;
110110 if (peloton::settings::SettingsManager::GetBool (
You can’t perform that action at this time.
0 commit comments