summaryrefslogtreecommitdiff
path: root/storage/federated
diff options
context:
space:
mode:
authorunknown <acurtis/antony@xiphis.org/ltamd64.xiphis.org>2007-07-20 11:35:19 -0700
committerunknown <acurtis/antony@xiphis.org/ltamd64.xiphis.org>2007-07-20 11:35:19 -0700
commit0fe79d23c01b91bb5381199f40648d8d836dca9a (patch)
tree7c8ede560a527f3fccd50ef45b6970dce6067b68 /storage/federated
parent342a894527ef7d4df3fc620c87691cde8317d43f (diff)
downloadmariadb-git-0fe79d23c01b91bb5381199f40648d8d836dca9a.tar.gz
Bug#29875
"Disable transaction support in Federated storage engine" Minimal patch to disable Federated's transactions until they can be fixed. mysql-test/r/federated.result: verify that transactions are disabled mysql-test/t/disabled.def: bug29875 disable federated_transactions test until Bug#29523 is resolved. mysql-test/t/federated.test: verify that transactions are disabled storage/federated/ha_federated.cc: bug29875 Disable support for transactions until fixed. storage/federated/ha_federated.h: bug29875 Disable support for transactions until fixed.
Diffstat (limited to 'storage/federated')
-rw-r--r--storage/federated/ha_federated.cc12
-rw-r--r--storage/federated/ha_federated.h1
2 files changed, 13 insertions, 0 deletions
diff --git a/storage/federated/ha_federated.cc b/storage/federated/ha_federated.cc
index 635a6fa79e0..2c9d692bb5b 100644
--- a/storage/federated/ha_federated.cc
+++ b/storage/federated/ha_federated.cc
@@ -449,6 +449,13 @@ int federated_db_init(void *p)
federated_hton->create= federated_create_handler;
federated_hton->flags= HTON_ALTER_NOT_SUPPORTED | HTON_NO_PARTITION;
+ /*
+ Support for transactions disabled until WL#2952 fixes it.
+ We do it like this to avoid "defined but not used" compiler warnings.
+ */
+ federated_hton->commit= 0;
+ federated_hton->rollback= 0;
+
if (pthread_mutex_init(&federated_mutex, MY_MUTEX_INIT_FAST))
goto error;
if (!hash_init(&federated_open_tables, &my_charset_bin, 32, 0, 0,
@@ -3163,6 +3170,10 @@ int ha_federated::external_lock(THD *thd, int lock_type)
ha_federated *trx= (ha_federated *)thd->ha_data[ht->slot];
DBUG_ENTER("ha_federated::external_lock");
+ /*
+ Support for transactions disabled until WL#2952 fixes it.
+ */
+#ifdef XXX_SUPERCEDED_BY_WL2952
if (lock_type != F_UNLCK)
{
DBUG_PRINT("info",("federated not lock F_UNLCK"));
@@ -3216,6 +3227,7 @@ int ha_federated::external_lock(THD *thd, int lock_type)
}
}
}
+#endif /* XXX_SUPERCEDED_BY_WL2952 */
DBUG_RETURN(0);
}
diff --git a/storage/federated/ha_federated.h b/storage/federated/ha_federated.h
index 3443194817b..b6c99f4d3aa 100644
--- a/storage/federated/ha_federated.h
+++ b/storage/federated/ha_federated.h
@@ -141,6 +141,7 @@ public:
| HA_REC_NOT_IN_SEQ | HA_AUTO_PART_KEY | HA_CAN_INDEX_BLOBS |
HA_BINLOG_ROW_CAPABLE | HA_BINLOG_STMT_CAPABLE |
HA_NO_PREFIX_CHAR_KEYS | HA_PRIMARY_KEY_REQUIRED_FOR_DELETE |
+ HA_NO_TRANSACTIONS /* until fixed by WL#2952 */ |
HA_PARTIAL_COLUMN_READ | HA_NULL_IN_KEY);
}
/*