diff options
author | monty@mysql.com <> | 2005-08-09 11:21:45 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2005-08-09 11:21:45 +0300 |
commit | c954c09a1196386feb3ff3232c5016845b9f68f2 (patch) | |
tree | 0978309486eacab28b3d59db151c9119ba7ff8ec /sql/ha_innodb.cc | |
parent | 10e5ee5196408cda111a29c124216660b91e8121 (diff) | |
download | mariadb-git-c954c09a1196386feb3ff3232c5016845b9f68f2.tar.gz |
Fixed test that failed on 32 bit systems
Diffstat (limited to 'sql/ha_innodb.cc')
-rw-r--r-- | sql/ha_innodb.cc | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc index d5d79b51f60..d98222975c5 100644 --- a/sql/ha_innodb.cc +++ b/sql/ha_innodb.cc @@ -2146,15 +2146,12 @@ innobase_close_connection( ut_a(trx); - if (trx->conc_state != TRX_NOT_STARTED) { - ut_print_timestamp(stderr); - - fprintf(stderr, -" InnoDB: Warning: MySQL is closing a connection\n" -"InnoDB: that has an active InnoDB transaction. We roll back that\n" -"InnoDB: transaction. %lu row modifications to roll back.\n", - (ulong)trx->undo_no.low); - } + if (trx->conc_state != TRX_NOT_STARTED && + global_system_variables.log_warnings) + sql_print_warning("MySQL is closing a connection that has an active " + "InnoDB transaction. %lu row modifications will " + "roll back.", + (ulong)trx->undo_no.low); innobase_rollback_trx(trx); |