mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Binlog compressed
Add some event types for the compressed event, there are: QUERY_COMPRESSED_EVENT, WRITE_ROWS_COMPRESSED_EVENT_V1, UPDATE_ROWS_COMPRESSED_EVENT_V1, DELETE_POWS_COMPRESSED_EVENT_V1, WRITE_ROWS_COMPRESSED_EVENT, UPDATE_ROWS_COMPRESSED_EVENT, DELETE_POWS_COMPRESSED_EVENT. These events inheritance the uncompressed editor events. One of their constructor functions and write function have been overridden for uncompressing and compressing. Anything but this is totally the same. On slave, The IO thread will uncompress and convert them When it receiving the events from the master. So the SQL and worker threads can be stay unchanged. Now we use zlib as compress algorithm. It maybe support other algorithm in the future.
This commit is contained in:
committed by
Kristian Nielsen
parent
27025221fe
commit
640051e06a
@ -109,7 +109,8 @@ extern CHARSET_INFO *character_set_filesystem;
|
||||
|
||||
extern MY_BITMAP temp_pool;
|
||||
extern bool opt_large_files;
|
||||
extern bool opt_update_log, opt_bin_log, opt_error_log;
|
||||
extern bool opt_update_log, opt_bin_log, opt_error_log, opt_bin_log_compress;
|
||||
extern uint opt_bin_log_compress_min_len;
|
||||
extern my_bool opt_log, opt_bootstrap;
|
||||
extern my_bool opt_backup_history_log;
|
||||
extern my_bool opt_backup_progress_log;
|
||||
|
Reference in New Issue
Block a user