Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 58a4ab5

Browse files
committed
Reverting to point where things working correctly
1 parent f1efdcd commit 58a4ab5

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/brain/index_selection_job.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff 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

src/main/peloton/peloton.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)