diff options
author | unknown <tomas@whalegate.ndb.mysql.com> | 2007-11-05 23:23:26 +0100 |
---|---|---|
committer | unknown <tomas@whalegate.ndb.mysql.com> | 2007-11-05 23:23:26 +0100 |
commit | ac7e0c857f7d44cb3d7b8d7696dc5c4d044167f6 (patch) | |
tree | e662e6b587cc551c5db39d3d5365d58069f0e5f4 /sql/ha_ndbcluster_binlog.cc | |
parent | 17a8a0b0db188b5a506ecb63916411923df9492e (diff) | |
download | mariadb-git-ac7e0c857f7d44cb3d7b8d7696dc5c4d044167f6.tar.gz |
preserve more of the state
Diffstat (limited to 'sql/ha_ndbcluster_binlog.cc')
-rw-r--r-- | sql/ha_ndbcluster_binlog.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/ha_ndbcluster_binlog.cc b/sql/ha_ndbcluster_binlog.cc index 9465c5dbb3c..93f7027d788 100644 --- a/sql/ha_ndbcluster_binlog.cc +++ b/sql/ha_ndbcluster_binlog.cc @@ -243,7 +243,8 @@ static void run_query(THD *thd, char *buf, char *end, { ulong save_query_length= thd->query_length; char *save_query= thd->query; - ulong save_thread_id= thd->variables.pseudo_thread_id; + struct system_variables save_variables= thd->variables; + struct system_status_var save_status_var= thd->status_var; ulonglong save_thd_options= thd->options; DBUG_ASSERT(sizeof(save_thd_options) == sizeof(thd->options)); NET save_net= thd->net; @@ -277,7 +278,8 @@ static void run_query(THD *thd, char *buf, char *end, thd->options= save_thd_options; thd->query_length= save_query_length; thd->query= save_query; - thd->variables.pseudo_thread_id= save_thread_id; + thd->variables= save_variables; + thd->status_var= save_status_var; thd->net= save_net; if (thd == injector_thd) |