summaryrefslogtreecommitdiff
path: root/mysys/stacktrace.c
diff options
context:
space:
mode:
author <Dao-Gang.Qu@sun.com>2010-08-03 11:49:14 +0800
committer <Dao-Gang.Qu@sun.com>2010-08-03 11:49:14 +0800
commit136c5212b1a0bcab4414b577ad9f4df1de75c302 (patch)
tree827bb821883bef2a58b2ea03a1f2d2607e6cdd6b /mysys/stacktrace.c
parent8dd48466cfd2ef58043b3b248169cf55aa9537c0 (diff)
parentaa1572f46df7e3406acc6fdade4700d5fff67355 (diff)
downloadmariadb-git-136c5212b1a0bcab4414b577ad9f4df1de75c302.tar.gz
Bug #34283 mysqlbinlog leaves tmpfile after termination if binlog contains load data infile
With statement- or mixed-mode logging, "LOAD DATA INFILE" queries are written to the binlog using special types of log events. When mysqlbinlog reads such events, it re-creates the file in a temporary directory with a generated filename and outputs a "LOAD DATA INFILE" query where the filename is replaced by the generated file. The temporary file is not deleted by mysqlbinlog after termination. To fix the problem, in mixed mode we go to row-based. In SBR, we document it to remind user the tmpfile is left in a temporary directory.
Diffstat (limited to 'mysys/stacktrace.c')
-rw-r--r--mysys/stacktrace.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mysys/stacktrace.c b/mysys/stacktrace.c
index 675910d2b20..ba62062ebc0 100644
--- a/mysys/stacktrace.c
+++ b/mysys/stacktrace.c
@@ -83,7 +83,9 @@ void my_print_stacktrace(uchar* stack_bottom __attribute__((unused)),
#if BACKTRACE_DEMANGLE
-char __attribute__ ((weak)) *my_demangle(const char *mangled_name, int *status)
+char __attribute__ ((weak)) *
+my_demangle(const char *mangled_name __attribute__((unused)),
+ int *status __attribute__((unused)))
{
return NULL;
}