diff options
author | vinchen <vinchen13@gmail.com> | 2016-10-14 15:23:49 +0800 |
---|---|---|
committer | Kristian Nielsen <knielsen@knielsen-hq.org> | 2016-10-19 20:20:47 +0200 |
commit | d4b2c9bb1afd6887d9295b44ed8f85f3bcf5019f (patch) | |
tree | 3f2ff4bcef3a21ceb4f1ddea15c32d791948f89f /sql/log_event.h | |
parent | 640051e06aa585b056671738a6614cd314074ac6 (diff) | |
download | mariadb-git-d4b2c9bb1afd6887d9295b44ed8f85f3bcf5019f.tar.gz |
optimize the memory allocation for compressed binlog event
Diffstat (limited to 'sql/log_event.h')
-rw-r--r-- | sql/log_event.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sql/log_event.h b/sql/log_event.h index 14bfc54aed3..59e4dcd8527 100644 --- a/sql/log_event.h +++ b/sql/log_event.h @@ -5074,11 +5074,13 @@ int binlog_buf_uncompress(const char *src, char *dst, uint32 len, uint32 *newlen uint32 binlog_get_compress_len(uint32 len); uint32 binlog_get_uncompress_len(const char *buf); -int query_event_uncompress(const Format_description_log_event *description_event, - bool contain_checksum, const char *src, char **dst, ulong *newlen); +int query_event_uncompress(const Format_description_log_event *description_event, bool contain_checksum, + const char *src, char* buf, ulong buf_size, bool* is_malloc, + char **dst, ulong *newlen); -int Row_log_event_uncompress(const Format_description_log_event *description_event, bool contain_checksum, - const char *src, char **dst, ulong *newlen); +int row_log_event_uncompress(const Format_description_log_event *description_event, bool contain_checksum, + const char *src, char* buf, ulong buf_size, bool* is_malloc, + char **dst, ulong *newlen); #endif /* _log_event_h */ |