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

Commit b7805ac

Browse files
Tianyi Chenapavlo
authored andcommitted
traffic_cop format change
1 parent efe2b81 commit b7805ac

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/traffic_cop/traffic_cop.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
#include <utility>
1616

1717
#include "binder/bind_node_visitor.h"
18+
#include "common/internal_types.h"
1819
#include "concurrency/transaction_context.h"
1920
#include "concurrency/transaction_manager_factory.h"
20-
#include "common/internal_types.h"
2121
#include "expression/expression_util.h"
2222
#include "optimizer/optimizer.h"
2323
#include "planner/plan_util.h"
@@ -355,8 +355,8 @@ void TrafficCop::ProcessInvalidStatement() {
355355
}
356356

357357
bool TrafficCop::BindParamsForCachePlan(
358-
const std::vector<std::unique_ptr<expression::AbstractExpression>> &
359-
parameters,
358+
const std::vector<std::unique_ptr<expression::AbstractExpression>>
359+
&parameters,
360360
std::string &error_message, const size_t thread_id UNUSED_ATTRIBUTE) {
361361
if (tcop_txn_state_.empty()) {
362362
single_statement_txn_ = true;
@@ -572,14 +572,15 @@ ResultType TrafficCop::ExecuteStatement(
572572
if (statement->GetNeedsReplan()) {
573573
// TODO(Tianyi) Move Statement Replan into Statement's method
574574
// to increase coherence
575-
auto plan =
576-
optimizer_->BuildPelotonPlanTree(statement->GetStmtParseTreeList(), default_database_name_, tcop_txn_state_.top().first);
575+
auto plan = optimizer_->BuildPelotonPlanTree(
576+
statement->GetStmtParseTreeList(), default_database_name_,
577+
tcop_txn_state_.top().first);
577578
statement->SetPlanTree(plan);
578579
statement->SetNeedsReplan(true);
579580
}
580-
581-
ExecuteHelper(statement->GetPlanTree(), params, result,
582-
result_format, thread_id);
581+
582+
ExecuteHelper(statement->GetPlanTree(), params, result, result_format,
583+
thread_id);
583584
if (GetQueuing()) {
584585
return ResultType::QUEUING;
585586
} else {

0 commit comments

Comments
 (0)