[CodeFormat] Clang-format cpp sources (#4965)

Clang-format all c++ source files.
This commit is contained in:
sduzh
2020-11-28 18:36:49 +08:00
committed by GitHub
parent f944bf4d44
commit 6fedf5881b
1331 changed files with 62548 additions and 68514 deletions

View File

@ -29,19 +29,17 @@ const std::string ScanNode::_s_num_disks_accessed_counter = "NumDiskAccess";
Status ScanNode::prepare(RuntimeState* state) {
RETURN_IF_ERROR(ExecNode::prepare(state));
_bytes_read_counter =
ADD_COUNTER(runtime_profile(), _s_bytes_read_counter, TUnit::BYTES);
_bytes_read_counter = ADD_COUNTER(runtime_profile(), _s_bytes_read_counter, TUnit::BYTES);
//TODO: The _rows_read_counter == RowsReturned counter in exec node, there is no need to keep both of them
_rows_read_counter =
ADD_COUNTER(runtime_profile(), _s_rows_read_counter, TUnit::UNIT);
_rows_read_counter = ADD_COUNTER(runtime_profile(), _s_rows_read_counter, TUnit::UNIT);
#ifndef BE_TEST
_total_throughput_counter = runtime_profile()->add_rate_counter(
_s_total_throughput_counter, _bytes_read_counter);
_total_throughput_counter =
runtime_profile()->add_rate_counter(_s_total_throughput_counter, _bytes_read_counter);
#endif
_num_disks_accessed_counter =
ADD_COUNTER(runtime_profile(), _s_num_disks_accessed_counter, TUnit::UNIT);
ADD_COUNTER(runtime_profile(), _s_num_disks_accessed_counter, TUnit::UNIT);
return Status::OK();
}
}
} // namespace doris