fix print trans trace event core

This commit is contained in:
chinaxing
2024-02-08 17:40:56 +00:00
committed by ob-robot
parent d6ac8823cd
commit 1ba6580847
3 changed files with 10 additions and 4 deletions

View File

@ -62,7 +62,7 @@ public:
int64_t total_time = 0;
const char* event_name = NULL;
const ObString nls_format;
for (int64_t i = 0; i < this->next_idx_; ++i) {
for (int64_t i = 0; i < MIN(EVENT_COUNT, this->next_idx_); ++i) {
const ObTraceEvent &ev = this->events_[i];
event_name = NAME(ev.id_);
if (prev_ts == 0) {