summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
authorsasha@mysql.sashanet.com <>2000-12-11 12:06:34 -0700
committersasha@mysql.sashanet.com <>2000-12-11 12:06:34 -0700
commitc8a915880bfbd9443cda18bd39e801795edb5cc8 (patch)
tree06aa933eac99f585851460d08dbc8105cd1e456b /sql/log_event.h
parenta4f853e22b59ae50ae221264428ef8ca45af0248 (diff)
downloadmariadb-git-c8a915880bfbd9443cda18bd39e801795edb5cc8.tar.gz
I hope I've fixed all the bugs by now, let's test it
Diffstat (limited to 'sql/log_event.h')
-rw-r--r--sql/log_event.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/log_event.h b/sql/log_event.h
index 3d307000b13..babf76aa428 100644
--- a/sql/log_event.h
+++ b/sql/log_event.h
@@ -65,6 +65,16 @@ public:
int valid_exec_time; // if false, the exec time setting is bogus
uint32 server_id;
+ static void *operator new(size_t size)
+ {
+ return (void*) my_malloc((uint)size, MYF(MY_WME|MY_FAE));
+ }
+
+ static void operator delete(void *ptr, size_t size)
+ {
+ my_free((byte*)ptr, MYF(MY_WME|MY_ALLOW_ZERO_PTR));
+ }
+
int write(IO_CACHE* file);
int write_header(IO_CACHE* file);
virtual int write_data(IO_CACHE* file __attribute__((unused))) { return 0; }