summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2002-10-31 16:43:42 +0200
committerunknown <monty@hundin.mysql.fi>2002-10-31 16:43:42 +0200
commitd19f89f9bd16b0f32dd76c09aac78d2120b0381c (patch)
tree843fc74c34ee54c14aabedabce3d1ad17883522f /sql
parentec952f21f8a4386045f5e5ac6fe44bf856ff2738 (diff)
parent3e320066e7a9ab1e757c2e400ca60e2f4870134a (diff)
downloadmariadb-git-d19f89f9bd16b0f32dd76c09aac78d2120b0381c.tar.gz
Merge work:/my/mysql-4.0 into hundin.mysql.fi:/my/mysql-4.0
configure.in: Auto merged
Diffstat (limited to 'sql')
-rw-r--r--sql/ha_innodb.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc
index 588c37e9cf3..b849bbb76b2 100644
--- a/sql/ha_innodb.cc
+++ b/sql/ha_innodb.cc
@@ -40,17 +40,12 @@ InnoDB */
#include "ha_innodb.h"
-/* We must declare this here because we undef SAFE_MUTEX below */
pthread_mutex_t innobase_mutex;
/* Store MySQL definition of 'byte': in Linux it is char while InnoDB
uses unsigned char */
typedef byte mysql_byte;
-#ifdef SAFE_MUTEX
-#undef pthread_mutex_t
-#endif
-
#define INSIDE_HA_INNOBASE_CC
/* Include necessary InnoDB headers */
@@ -752,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) {