summaryrefslogtreecommitdiff
path: root/sql/wsrep_hton.cc
diff options
context:
space:
mode:
authorSeppo Jaakola <seppo.jaakola@codership.com>2013-08-21 17:17:30 +0300
committerSeppo Jaakola <seppo.jaakola@codership.com>2013-08-21 17:17:30 +0300
commitfca065f95c3f62b0f6ec8448f7dcda40d73eb433 (patch)
tree8d477005bfd14f335d91d8c66c0632f64c7599cb /sql/wsrep_hton.cc
parent2db87f65167c389c191336672e7ae1ddc65c8436 (diff)
downloadmariadb-git-fca065f95c3f62b0f6ec8448f7dcda40d73eb433.tar.gz
Merged with lp:~codership/codership-mysql/5.5-23, up to revision 3903
Diffstat (limited to 'sql/wsrep_hton.cc')
-rw-r--r--sql/wsrep_hton.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/wsrep_hton.cc b/sql/wsrep_hton.cc
index 8b682d579d8..bd934031fc3 100644
--- a/sql/wsrep_hton.cc
+++ b/sql/wsrep_hton.cc
@@ -75,7 +75,12 @@ void wsrep_register_hton(THD* thd, bool all)
if (i->ht()->db_type == DB_TYPE_INNODB)
{
trans_register_ha(thd, all, wsrep_hton);
- thd->ha_data[wsrep_hton->slot].ha_info[all].set_trx_read_write();
+
+ /* follow innodb read/write settting */
+ if (i->is_trx_read_write())
+ {
+ thd->ha_data[wsrep_hton->slot].ha_info[all].set_trx_read_write();
+ }
break;
}
}