mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
fix the track_progress method refs[t:2082]
git-svn-id: file:///svn/mysql/tokudb-engine/src@15110 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
0181a93679
commit
c9af87e499
1 changed files with 2 additions and 2 deletions
|
@ -3983,8 +3983,8 @@ void ha_tokudb::track_progress(THD* thd) {
|
||||||
if (trx) {
|
if (trx) {
|
||||||
ulonglong num_written = trx->stmt_progress.inserted + trx->stmt_progress.updated + trx->stmt_progress.deleted;
|
ulonglong num_written = trx->stmt_progress.inserted + trx->stmt_progress.updated + trx->stmt_progress.deleted;
|
||||||
bool update_status =
|
bool update_status =
|
||||||
(tokudb_read_status_frequency && (trx->stmt_progress.queried % tokudb_read_status_frequency) == 1) ||
|
(trx->stmt_progress.queried && tokudb_read_status_frequency && (trx->stmt_progress.queried % tokudb_read_status_frequency) == 0) ||
|
||||||
(tokudb_write_status_frequency && (num_written) % tokudb_write_status_frequency == 1);
|
(num_written && tokudb_write_status_frequency && (num_written % tokudb_write_status_frequency) == 0);
|
||||||
if (update_status) {
|
if (update_status) {
|
||||||
char *next_status = write_status_msg;
|
char *next_status = write_status_msg;
|
||||||
bool first = true;
|
bool first = true;
|
||||||
|
|
Loading…
Reference in a new issue