diff options
author | kostja@bodhi.(none) <> | 2007-10-30 20:08:16 +0300 |
---|---|---|
committer | kostja@bodhi.(none) <> | 2007-10-30 20:08:16 +0300 |
commit | e4b353c40c551e4ac0832dd0106219e7e0b716ba (patch) | |
tree | 9ec3bc334876bc45e6590ad238ea740b8192f907 /sql/ha_ndbcluster_binlog.cc | |
parent | 0909d1f8cbebaac2afb640b0f57a752d973c1582 (diff) | |
download | mariadb-git-e4b353c40c551e4ac0832dd0106219e7e0b716ba.tar.gz |
Use an inline getter method (thd->is_error()) to query if there is an error
in THD.
In future the error may be stored elsewhere (not in net.report_error) and
it's important to start using an opaque getter to simplify merges.
Diffstat (limited to 'sql/ha_ndbcluster_binlog.cc')
-rw-r--r-- | sql/ha_ndbcluster_binlog.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_ndbcluster_binlog.cc b/sql/ha_ndbcluster_binlog.cc index c22d5ac53f5..fc35a7a930e 100644 --- a/sql/ha_ndbcluster_binlog.cc +++ b/sql/ha_ndbcluster_binlog.cc @@ -271,7 +271,7 @@ static void run_query(THD *thd, char *buf, char *end, sql_print_error("NDB: %s: error %s %d(ndb: %d) %d %d", buf, thd->net.last_error, thd->net.last_errno, thd_ndb->m_error_code, - thd->net.report_error, thd->is_slave_error); + (int) thd->is_error(), thd->is_slave_error); } thd->options= save_thd_options; |