diff options
author | unknown <heikki@hundin.mysql.fi> | 2002-10-31 12:03:34 +0200 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2002-10-31 12:03:34 +0200 |
commit | e53b7488dcd18705fd785915f48cc64abd2fdb27 (patch) | |
tree | 9b2f90e976765c285ac30d5add776282f9a6b7fd /sql/ha_innodb.cc | |
parent | f2649f104b821c370955aab1270da8bafce0bae0 (diff) | |
download | mariadb-git-e53b7488dcd18705fd785915f48cc64abd2fdb27.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
sql/ha_innodb.cc:
Add check that sizeof(trx_t) is the same in ha_inndob.cc and InnoDB compilation modules
innobase/srv/srv0start.c:
Add check that sizeof(trx_t) is the same in ha_inndob.cc and InnoDB compilation modules
innobase/include/srv0start.h:
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.cc | 8 |
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) { |