summaryrefslogtreecommitdiff
path: root/sql/slave.h
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2002-06-22 20:00:32 +0300
committerunknown <heikki@hundin.mysql.fi>2002-06-22 20:00:32 +0300
commit23dbcb0fa4f8904c43761791c0c852a368cfa753 (patch)
tree84b6b84d9c48bd96705aac35e66623b72d988cc7 /sql/slave.h
parent9ee25c7109ef9f00484c8b06407584b570c2a440 (diff)
downloadmariadb-git-23dbcb0fa4f8904c43761791c0c852a368cfa753.tar.gz
slave.h, slave.cc:
Do not flush the position to master.info file if we have a transaction open sql/slave.cc: Do not flush the position to master.info file if we have a transaction open sql/slave.h: Do not flush the position to master.info file if we have a transaction open
Diffstat (limited to 'sql/slave.h')
-rw-r--r--sql/slave.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/slave.h b/sql/slave.h
index 2934e675d56..769689ebfa2 100644
--- a/sql/slave.h
+++ b/sql/slave.h
@@ -12,6 +12,12 @@ typedef struct st_master_info
{
char log_file_name[FN_REFLEN];
ulonglong pos,pending;
+ int event_len; /* Added by Heikki: InnoDB internally stores the
+ master log position it has processed so far; the
+ position to store is really the sum
+ pos + pending + event_len
+ here since we must store the pos of the END of the
+ current log event */
File fd; // we keep the file open, so we need to remember the file pointer
IO_CACHE file;
// the variables below are needed because we can change masters on the fly