summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael@mysql.com>2008-12-22 18:10:24 +0100
committerMikael Ronstrom <mikael@mysql.com>2008-12-22 18:10:24 +0100
commitd08a300b1149d47b85c804830bc0a9da22961223 (patch)
treece3e12f27fead51f72fe52ce108a4dc5acbd17bb /sql
parent928ad6cb78bef8cde1f8ee12699d81b4244a5c62 (diff)
downloadmariadb-git-d08a300b1149d47b85c804830bc0a9da22961223.tar.gz
DTrace fixes plus fixing a too long file name
Diffstat (limited to 'sql')
-rw-r--r--sql/Makefile.am4
-rw-r--r--sql/filesort.cc2
-rw-r--r--sql/sp_head.cc2
-rw-r--r--sql/sql_update.cc2
4 files changed, 6 insertions, 4 deletions
diff --git a/sql/Makefile.am b/sql/Makefile.am
index dcba2407837..95cfa649012 100644
--- a/sql/Makefile.am
+++ b/sql/Makefile.am
@@ -29,7 +29,7 @@ libexec_PROGRAMS = mysqld
EXTRA_PROGRAMS = gen_lex_hash
bin_PROGRAMS = mysql_tzinfo_to_sql
DTRACEFILES = filesort.o \
- ha_ndbcluster.o \
+ libndb_la-ha_ndbcluster.o \
handler.o \
mysqld.o \
net_serv.o \
@@ -207,6 +207,8 @@ install-exec-hook:
test ! -f mysqld.sym.gz || $(INSTALL_DATA) mysqld.sym.gz $(DESTDIR)$(pkglibdir)
if HAVE_DTRACE_DASH_G
+libndb_la_LIBADD = probes_all.o
+libndb_la_DEPENDENCIES = probes_all.o dtrace_files dtrace_providers
mysqld_LDADD += probes_all.o
mysqld_DEPENDENCIES += probes_all.o dtrace_files dtrace_providers
CLEANFILES += dtrace_files dtrace_providers probes_all.o
diff --git a/sql/filesort.cc b/sql/filesort.cc
index e95d1741b06..d23715a0149 100644
--- a/sql/filesort.cc
+++ b/sql/filesort.cc
@@ -122,7 +122,7 @@ ha_rows filesort(THD *thd, TABLE *table, SORT_FIELD *sortorder, uint s_length,
TABLE_LIST *tab= table->pos_in_table_list;
Item_subselect *subselect= tab ? tab->containing_subselect() : 0;
- MYSQL_FILESORT_START(table->s->db.str, table->s->tablename.str);
+ MYSQL_FILESORT_START(table->s->db.str, table->s->table_name.str);
/*
Release InnoDB's adaptive hash index latch (if holding) before
diff --git a/sql/sp_head.cc b/sql/sp_head.cc
index ee73a463991..95cea22ecd9 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -2901,7 +2901,7 @@ sp_instr_stmt::exec_core(THD *thd, uint *nextp)
thd->thread_id,
(char *) (thd->db ? thd->db : ""),
thd->security_ctx->priv_user,
- thd->security_ctx->host_or_ip,
+ (char *)thd->security_ctx->host_or_ip,
3);
int res= mysql_execute_command(thd);
MYSQL_QUERY_EXEC_DONE(res);
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 9400665cbdc..a0fcb2020a4 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -1231,7 +1231,7 @@ bool mysql_multi_update(THD *thd,
result->send_error(ER_UNKNOWN_ERROR, ER(ER_UNKNOWN_ERROR));
result->abort();
}
- MYSQL_MULTI_UPDATE_DONE(res, result->found(), result->updated());
+ MYSQL_MULTI_UPDATE_DONE(res, result->num_found(), result->num_updated());
delete result;
thd->abort_on_warning= 0;
DBUG_RETURN(FALSE);