Commit 4415af75 authored by unknown's avatar unknown

BUG#25323 NDB binlog timer prints incorrect stats

fix time period calculation


sql/ha_ndbcluster_binlog.cc:
  fix time period of NDB_BINLOG_TIMER
parent 6ee1a5c8
...@@ -3924,9 +3924,9 @@ pthread_handler_t ndb_binlog_thread_func(void *arg) ...@@ -3924,9 +3924,9 @@ pthread_handler_t ndb_binlog_thread_func(void *arg)
"%ld(%d e/s), total time %ld(%d e/s)", "%ld(%d e/s), total time %ld(%d e/s)",
(ulong)gci, event_count, (ulong)gci, event_count,
write_timer.elapsed_ms(), write_timer.elapsed_ms(),
event_count / write_timer.elapsed_ms(), (1000*event_count) / write_timer.elapsed_ms(),
gci_timer.elapsed_ms(), gci_timer.elapsed_ms(),
event_count / gci_timer.elapsed_ms()); (1000*event_count) / gci_timer.elapsed_ms());
#endif #endif
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment