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) {
28
28
29
29
// Analyze stats for all the tables.
30
30
// 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
+ // }
41
41
42
42
// Query the catalog for new SQL queries.
43
43
// 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[]) {
101
101
// run both peloton server and the brain together to test the index suggestion
102
102
// at the brain end without catalog replication between the server and the
103
103
// 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 );
108
108
109
109
int exit_code = 0 ;
110
110
if (peloton::settings::SettingsManager::GetBool (
You can’t perform that action at this time.
0 commit comments