Commit cb55fecf authored by osku's avatar osku

Remove duplicate printing of row lock counts in SHOW INNODB STATUS, and in

the remaining print, add a comma so it doesn't get combined with the heap
size. Both problems were introduced in r383.
parent f3cf3365
...@@ -4391,10 +4391,6 @@ loop: ...@@ -4391,10 +4391,6 @@ loop:
trx->read_view->up_limit_id)); trx->read_view->up_limit_id));
} }
fprintf(file,
"Trx has approximately %lu row locks\n",
(ulong) lock_number_of_rows_locked(trx));
if (trx->que_state == TRX_QUE_LOCK_WAIT) { if (trx->que_state == TRX_QUE_LOCK_WAIT) {
fprintf(file, fprintf(file,
"------- TRX HAS BEEN WAITING %lu SEC" "------- TRX HAS BEEN WAITING %lu SEC"
......
...@@ -1761,11 +1761,10 @@ trx_print( ...@@ -1761,11 +1761,10 @@ trx_print(
|| mem_heap_get_size(trx->lock_heap) > 400) { || mem_heap_get_size(trx->lock_heap) > 400) {
newline = TRUE; newline = TRUE;
fprintf(f, "%lu lock struct(s), heap size %lu", fprintf(f, "%lu lock struct(s), heap size %lu,"
" %lu row lock(s)",
(ulong) UT_LIST_GET_LEN(trx->trx_locks), (ulong) UT_LIST_GET_LEN(trx->trx_locks),
(ulong) mem_heap_get_size(trx->lock_heap)); (ulong) mem_heap_get_size(trx->lock_heap),
fprintf(f, "%lu row lock(s)",
(ulong) lock_number_of_rows_locked(trx)); (ulong) lock_number_of_rows_locked(trx));
} }
......
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