summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2003-07-08 14:16:27 +0300
committerunknown <heikki@hundin.mysql.fi>2003-07-08 14:16:27 +0300
commite8d5bb189500ca968f4653ad9bfb1a97aba25a93 (patch)
treea138bbb5e34b84958b7afbdf6fd8342d9fe4bf83 /innobase
parentd0486f8abce9e241103acb33ac4f82f11e2b76c4 (diff)
downloadmariadb-git-e8d5bb189500ca968f4653ad9bfb1a97aba25a93.tar.gz
trx0trx.c:
A cosmetic change: set trx id to zero at creation so that SHOW INNODB STATUS does not print a random value for the id of a transaction object for which the transaction has never been started yet (for example, running SHOW INNODB STATUS as the first command from a mysql prompt printed a random id for the trx object associated with the session itself running the SHOW INNODB STATUS command) innobase/trx/trx0trx.c: A cosmetic change: set trx id to zero at creation so that SHOW INNODB STATUS does not print a random value for the id of a transaction object for which the transaction has never been started yet (for example, running SHOW INNODB STATUS as the first command from a mysql prompt printed a random id for the trx object associated with the session itself running the SHOW INNODB STATUS command)
Diffstat (limited to 'innobase')
-rw-r--r--innobase/trx/trx0trx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/innobase/trx/trx0trx.c b/innobase/trx/trx0trx.c
index 0dead50264b..e8d6c093680 100644
--- a/innobase/trx/trx0trx.c
+++ b/innobase/trx/trx0trx.c
@@ -86,6 +86,10 @@ trx_create(
trx->start_time = time(NULL);
trx->isolation_level = TRX_ISO_REPEATABLE_READ;
+
+ trx->id = ut_dulint_zero;
+ trx->no = ut_dulint_max;
+
trx->check_foreigns = TRUE;
trx->check_unique_secondary = TRUE;