summaryrefslogtreecommitdiff
path: root/sql/ha_innodb.cc
diff options
context:
space:
mode:
authorheikki@hundin.mysql.fi <>2002-10-31 12:03:34 +0200
committerheikki@hundin.mysql.fi <>2002-10-31 12:03:34 +0200
commit23657e8c33b2702ad2477ac0c375cbf575dee616 (patch)
tree9b2f90e976765c285ac30d5add776282f9a6b7fd /sql/ha_innodb.cc
parentf51bc42cf5fbc86c62876b4f9fa994d09a3ad73c (diff)
downloadmariadb-git-23657e8c33b2702ad2477ac0c375cbf575dee616.tar.gz
srv0start.h, srv0start.c, ha_innodb.cc:
Add check that sizeof(trx_t) is the same in ha_inndob.cc and InnoDB compilation modules
Diffstat (limited to 'sql/ha_innodb.cc')
-rw-r--r--sql/ha_innodb.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc
index 79c85985f23..b849bbb76b2 100644
--- a/sql/ha_innodb.cc
+++ b/sql/ha_innodb.cc
@@ -747,6 +747,14 @@ innobase_init(void)
default_charset_info->sort_order, 256);
}
+ /* Since we in this module access directly the fields of a trx
+ struct, and due to different headers and flags it might happen that
+ mutex_t has a different size in this module and in InnoDB
+ modules, we check at run time that the size is the same in
+ these compilation modules. */
+
+ srv_sizeof_trx_t_in_ha_innodb_cc = sizeof(trx_t);
+
err = innobase_start_or_create_for_mysql();
if (err != DB_SUCCESS) {