mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
fixup progress tracking refs[t:2082]
git-svn-id: file:///svn/mysql/tokudb-engine/src@15063 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
973e436205
commit
a4f10941b8
1 changed files with 8 additions and 4 deletions
|
@ -3990,22 +3990,26 @@ void ha_tokudb::track_progress(THD* thd) {
|
|||
bool first = true;
|
||||
int r;
|
||||
if (trx->stmt_progress.queried) {
|
||||
r = sprintf(next_status, "Queried about %llu rows", trx->stmt_progress.queried); assert(r >= 0);
|
||||
r = sprintf(next_status, "Queried about %llu row%s", trx->stmt_progress.queried, trx->stmt_progress.queried == 1 ? "" : "s");
|
||||
assert(r >= 0);
|
||||
next_status += r;
|
||||
first = false;
|
||||
}
|
||||
if (trx->stmt_progress.inserted) {
|
||||
r = sprintf(next_status, "%sInserted about %llu rows", first ? "" : ", ", trx->stmt_progress.inserted); assert(r >= 0);
|
||||
r = sprintf(next_status, "%sInserted about %llu row%s", first ? "" : ", ", trx->stmt_progress.inserted, trx->stmt_progress.inserted == 1 ? "" : "s");
|
||||
assert(r >= 0);
|
||||
next_status += r;
|
||||
first = false;
|
||||
}
|
||||
if (trx->stmt_progress.updated) {
|
||||
r = sprintf(next_status, "%sUpdated about %llu rows", first ? "" : ", ", trx->stmt_progress.updated); assert(r >= 0);
|
||||
r = sprintf(next_status, "%sUpdated about %llu row%s", first ? "" : ", ", trx->stmt_progress.updated, trx->stmt_progress.updated == 1 ? "" : "s");
|
||||
assert(r >= 0);
|
||||
next_status += r;
|
||||
first = false;
|
||||
}
|
||||
if (trx->stmt_progress.deleted) {
|
||||
r = sprintf(next_status, "%sDeleted about %llu rows", first ? "" : ", ", trx->stmt_progress.deleted); assert(r >= 0);
|
||||
r = sprintf(next_status, "%sDeleted about %llu row%s", first ? "" : ", ", trx->stmt_progress.deleted, trx->stmt_progress.deleted == 1 ? "" : "s");
|
||||
assert(r >= 0);
|
||||
next_status += r;
|
||||
first = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue