summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster_binlog.cc
diff options
context:
space:
mode:
authorkostja@bodhi.(none) <>2007-10-20 01:20:38 +0400
committerkostja@bodhi.(none) <>2007-10-20 01:20:38 +0400
commit7c00f8a3b474ef278004d29dcd8811f0c8f76d50 (patch)
tree3fac455068aa18eea8a94284fe78eb7b2ccea23c /sql/ha_ndbcluster_binlog.cc
parentedec79d60a0fbb8156c6f4649401be5cf5f0b192 (diff)
downloadmariadb-git-7c00f8a3b474ef278004d29dcd8811f0c8f76d50.tar.gz
Rename: query_error -> is_slave_error.
Add comments.
Diffstat (limited to 'sql/ha_ndbcluster_binlog.cc')
-rw-r--r--sql/ha_ndbcluster_binlog.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/ha_ndbcluster_binlog.cc b/sql/ha_ndbcluster_binlog.cc
index 5d5c8a26447..c22d5ac53f5 100644
--- a/sql/ha_ndbcluster_binlog.cc
+++ b/sql/ha_ndbcluster_binlog.cc
@@ -259,7 +259,7 @@ static void run_query(THD *thd, char *buf, char *end,
DBUG_PRINT("query", ("%s", thd->query));
mysql_parse(thd, thd->query, thd->query_length, &found_semicolon);
- if (no_print_error && thd->query_error)
+ if (no_print_error && thd->is_slave_error)
{
int i;
Thd_ndb *thd_ndb= get_thd_ndb(thd);
@@ -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->query_error);
+ thd->net.report_error, thd->is_slave_error);
}
thd->options= save_thd_options;