diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-08-31 16:35:37 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-09-04 10:33:55 +0200 |
commit | 41d68cabee1d9c2a8e8c7a006b17070392a85ed7 (patch) | |
tree | 1f2cb4724fddd63923b0873ae3c35cf8d17c1c20 /sql/log_event_old.h | |
parent | 704ba5c514b030e4e1c20fe659d985d3bd493bf1 (diff) | |
download | mariadb-git-41d68cabee1d9c2a8e8c7a006b17070392a85ed7.tar.gz |
cleanup: Log_event::write() and MYSQL_BIN_LOG::write_cache()
Introduce Log_event_writer() that encapsulates
writing data to an IO_CACHE with automatic checksum calculation.
Now all events properly checksum themselves as needed.
Use Log_event_writer in MYSQL_BIN_LOG::write_cache() instead
of copy-pasting its logic all over.
Later Log_event_writer will also do encryption.
Diffstat (limited to 'sql/log_event_old.h')
-rw-r--r-- | sql/log_event_old.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/log_event_old.h b/sql/log_event_old.h index ed07f753e7a..edc74ca1a6f 100644 --- a/sql/log_event_old.h +++ b/sql/log_event_old.h @@ -134,8 +134,8 @@ public: ulong get_table_id() const { return m_table_id; } #ifndef MYSQL_CLIENT - virtual bool write_data_header(IO_CACHE *file); - virtual bool write_data_body(IO_CACHE *file); + virtual bool write_data_header(); + virtual bool write_data_body(); virtual const char *get_db() { return m_table->s->db.str; } #endif /* |