Skip to content

Commit

Permalink
[Bug] fix mixed used of counter (apache#3720)
Browse files Browse the repository at this point in the history
MysqlResultWriter _sent_rows_counter and _result_send_timer are mixed used.
It will results core dump when checking counter->type().
  • Loading branch information
chaoyli authored May 29, 2020
1 parent 5f1d25a commit 93aae6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/runtime/mysql_result_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ Status MysqlResultWriter::append_row_batch(const RowBatch* batch) {
}

if (status.ok()) {
SCOPED_TIMER(_sent_rows_counter);
SCOPED_TIMER(_result_send_timer);
// push this batch to back
status = _sinker->add_batch(result);

Expand Down

0 comments on commit 93aae6b

Please sign in to comment.