summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
authormats@mysql.com <>2006-02-16 08:46:45 +0100
committermats@mysql.com <>2006-02-16 08:46:45 +0100
commit43bc3c40687fa42118322f89a9ed5145743d427f (patch)
tree3f960f1eee8ec7454fbf52e22f645085d4b004dd /sql/log_event.h
parent05696de46f6b9f4b186061dfd563c65228269bd0 (diff)
parent2884408c751f770cc27375743b870f667d8f54af (diff)
downloadmariadb-git-43bc3c40687fa42118322f89a9ed5145743d427f.tar.gz
Merge mysql.com:/home/bkroot/mysql-5.1-new
into mysql.com:/home/bk/w3023-mysql-5.1-new
Diffstat (limited to 'sql/log_event.h')
-rw-r--r--sql/log_event.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/sql/log_event.h b/sql/log_event.h
index a7c532d4c24..7a0c24ea626 100644
--- a/sql/log_event.h
+++ b/sql/log_event.h
@@ -657,11 +657,16 @@ public:
{
return (void*) my_malloc((uint)size, MYF(MY_WME|MY_FAE));
}
+
static void operator delete(void *ptr, size_t size)
{
my_free((gptr) ptr, MYF(MY_WME|MY_ALLOW_ZERO_PTR));
}
+ /* Placement version of the above operators */
+ static void *operator new(size_t, void* ptr) { return ptr; }
+ static void operator delete(void*, void*) { }
+
#ifndef MYSQL_CLIENT
bool write_header(IO_CACHE* file, ulong data_length);
virtual bool write(IO_CACHE* file)
@@ -1795,10 +1800,8 @@ public:
#if !defined(MYSQL_CLIENT) && defined(HAVE_REPLICATION)
virtual int exec_event(struct st_relay_log_info *rli);
-#ifdef DBUG_RBR
virtual void pack_info(Protocol *protocol);
#endif
-#endif
#ifdef MYSQL_CLIENT
/* not for direct call, each derived has its own ::print() */
@@ -1850,6 +1853,7 @@ public:
Error code, or zero if write succeeded.
*/
#if !defined(MYSQL_CLIENT) && defined(HAVE_ROW_BASED_REPLICATION)
+#if 0
int maybe_write_table_map(THD *thd, IO_CACHE *file, MYSQL_LOG *log) const
{
/*
@@ -1864,6 +1868,9 @@ public:
return result;
}
#endif
+#endif
+
+ uint m_row_count; /* The number of rows added to the event */
protected:
/*