summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2004-11-18 22:45:48 +0000
committerunknown <tomas@poseidon.ndb.mysql.com>2004-11-18 22:45:48 +0000
commit3ef38a3732a832f91d1ab5db62659a36a081646e (patch)
tree04327495b470d2cb0ee9c42b7025287007034847 /sql/sql_class.cc
parentf7164c732b86fff6c5f5ffb6defc42307e24a3e1 (diff)
downloadmariadb-git-3ef38a3732a832f91d1ab5db62659a36a081646e.tar.gz
moved ndb_use_transactions out of opts and to be set default true in THD::init
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index eda60b5cfdb..bab81d785c3 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -280,6 +280,9 @@ void THD::init(void)
variables.date_format);
variables.datetime_format= date_time_format_copy((THD*) 0,
variables.datetime_format);
+#ifdef HAVE_NDBCLUSTER_DB
+ variables.ndb_use_transactions= 1;
+#endif
pthread_mutex_unlock(&LOCK_global_system_variables);
server_status= SERVER_STATUS_AUTOCOMMIT;
options= thd_startup_options;