summaryrefslogtreecommitdiff
path: root/sql/ha_innodb.cc
diff options
context:
space:
mode:
authormonty@mysql.com <>2005-08-09 11:21:45 +0300
committermonty@mysql.com <>2005-08-09 11:21:45 +0300
commitc954c09a1196386feb3ff3232c5016845b9f68f2 (patch)
tree0978309486eacab28b3d59db151c9119ba7ff8ec /sql/ha_innodb.cc
parent10e5ee5196408cda111a29c124216660b91e8121 (diff)
downloadmariadb-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.cc15
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);