summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
authorvva@eagle.mysql.r18.ru <>2004-02-06 20:57:11 +0400
committervva@eagle.mysql.r18.ru <>2004-02-06 20:57:11 +0400
commit0333f7b10fc9b19888be6afb656aff90b876d8bc (patch)
treec227c897a657471d0719eefc11829eead946197e /sql/log_event.h
parent650580698f7f473b1ccb5a520a17fc8b269c7c9f (diff)
downloadmariadb-git-0333f7b10fc9b19888be6afb656aff90b876d8bc.tar.gz
fixed bug #1378 "mysqlbinlog for remote host is broken"
Diffstat (limited to 'sql/log_event.h')
-rw-r--r--sql/log_event.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/log_event.h b/sql/log_event.h
index a1a7798be34..b610263a462 100644
--- a/sql/log_event.h
+++ b/sql/log_event.h
@@ -411,17 +411,19 @@ public:
const char* fname;
uint32 skip_lines;
sql_ex_info sql_ex;
+ bool local_fname;
/* fname doesn't point to memory inside Log_event::temp_buf */
void set_fname_outside_temp_buf(const char *afname, uint alen)
{
fname= afname;
fname_len= alen;
+ local_fname= true;
}
/* fname doesn't point to memory inside Log_event::temp_buf */
int check_fname_outside_temp_buf()
{
- return fname < temp_buf || fname > temp_buf+ cached_event_len;
+ return local_fname;
}
#ifndef MYSQL_CLIENT