summaryrefslogtreecommitdiff
path: root/sql/wsrep_binlog.h
diff options
context:
space:
mode:
authorDaniele Sciascia <daniele.sciascia@galeracluster.com>2016-05-06 16:07:53 +0200
committerNirbhay Choubey <nirbhay@mariadb.com>2016-07-25 11:44:57 -0400
commit74f80b349924c7f0c091a0973dea0ec61191c2c9 (patch)
treec6d0265edd1470a850c70eda77f773ea315ca85b /sql/wsrep_binlog.h
parent5197fcf6b4611a26b3847d1101f1a4fb6d17570a (diff)
downloadmariadb-git-74f80b349924c7f0c091a0973dea0ec61191c2c9.tar.gz
MW-267 Enforce wsrep_max_ws_size limit in wsrep provider
This changes variable wsrep_max_ws_size so that its value is linked to the value of provider option repl.max_ws_size. That is, changing the value of variable wsrep_max_ws_size will change the value of provider option repl.max_ws_size, and viceversa. The writeset size limit is always enforced in the provider, regardless of which option is used.
Diffstat (limited to 'sql/wsrep_binlog.h')
-rw-r--r--sql/wsrep_binlog.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/wsrep_binlog.h b/sql/wsrep_binlog.h
index a7b680f616b..c29d51caf2c 100644
--- a/sql/wsrep_binlog.h
+++ b/sql/wsrep_binlog.h
@@ -19,7 +19,7 @@
#include "sql_class.h" // THD, IO_CACHE
#define HEAP_PAGE_SIZE 65536 /* 64K */
-#define WSREP_MAX_WS_SIZE (0xFFFFFFFFUL - HEAP_PAGE_SIZE)
+#define WSREP_MAX_WS_SIZE 2147483647 /* 2GB */
/*
Write the contents of a cache to a memory buffer.