From 3db92ee43358f5df256bf1b0db4955ec86bdceee Mon Sep 17 00:00:00 2001 From: Daniele Sciascia Date: Tue, 3 May 2016 16:22:01 +0200 Subject: MW-265 Add support for wsrep_max_ws_rows Variable wsrep_max_ws_rows limits the number of rows that a transaction can insert/update/delete. --- sql/sql_class.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/sql_class.h') diff --git a/sql/sql_class.h b/sql/sql_class.h index b9f0c0a0ae7..9ee5a40dc99 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -3878,6 +3878,7 @@ public: bool wsrep_apply_toi; /* applier processing in TOI */ bool wsrep_skip_append_keys; wsrep_gtid_t wsrep_sync_wait_gtid; + ulong wsrep_affected_rows; #endif /* WITH_WSREP */ }; -- cgit v1.2.1 From 7431368eafb3e531ba3926e85cc515778f6b5e2f Mon Sep 17 00:00:00 2001 From: Daniele Sciascia Date: Thu, 14 Jul 2016 14:29:59 +0200 Subject: MW-292 Reset timestamp after transaction replay Transaction replay causes the THD to re-apply the replication events from execution, using the same path appliers do. While applying the log events, the THD's timestamp is set to the timestamp of the event. Setting the timestamp explicitly causes function NOW() to always the timestamp that was set. To avoid this behavior we reset the timestamp after replaying is done. --- sql/sql_class.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/sql_class.h') diff --git a/sql/sql_class.h b/sql/sql_class.h index 9ee5a40dc99..bf3d043cc1a 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -68,6 +68,7 @@ struct wsrep_thd_shadow { ulong tx_isolation; char *db; size_t db_length; + my_hrtime_t user_time; }; #endif class Reprepare_observer; -- cgit v1.2.1 From df96eb5d049db22157ad0c01ac0e50c7beb79a88 Mon Sep 17 00:00:00 2001 From: sjaakola Date: Thu, 18 Feb 2016 14:34:53 +0200 Subject: Refs: MW-248 - test cases from PXC for reproducing the issue - initial fix --- sql/sql_class.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/sql_class.h') diff --git a/sql/sql_class.h b/sql/sql_class.h index bf3d043cc1a..ee637b3726d 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -660,6 +660,7 @@ typedef struct system_variables uint wsrep_sync_wait; ulong wsrep_retry_autocommit; ulong wsrep_OSU_method; + ulong wsrep_auto_increment_control; #endif double long_query_time_double; -- cgit v1.2.1 From 4290117b79bccec71b4a92c99beb3e15668627e7 Mon Sep 17 00:00:00 2001 From: sjaakola Date: Mon, 29 Feb 2016 15:24:06 +0200 Subject: Refs MW-252 - enveloped FTWRL processing with wsrep desync/resync calls. This way FTWRL processing node will not cause flow control to kick in - donor servicing thread is unfortunate exception, we must let him to pause provider as part of FTWRL phase, but not desync/resync as this is done as part of donor control on higher level --- sql/sql_class.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/sql_class.h') diff --git a/sql/sql_class.h b/sql/sql_class.h index ee637b3726d..6181333e1b2 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -3880,6 +3880,7 @@ public: bool wsrep_apply_toi; /* applier processing in TOI */ bool wsrep_skip_append_keys; wsrep_gtid_t wsrep_sync_wait_gtid; + my_bool wsrep_donor; /* true if thread is SST donor servicing */ ulong wsrep_affected_rows; #endif /* WITH_WSREP */ }; -- cgit v1.2.1 From 8ec50ebda3c558e34f263c08b2661929f0bdad2d Mon Sep 17 00:00:00 2001 From: sjaakola Date: Mon, 29 Feb 2016 22:54:58 +0200 Subject: Refs MW-252 - reverted from tracking donor servicing thread. With xtrabackup SST, xtrabackup thread will call FTWRL and node is desynced upfront - Skipping desync in FTWRL if node is operating as donor --- sql/sql_class.h | 1 - 1 file changed, 1 deletion(-) (limited to 'sql/sql_class.h') diff --git a/sql/sql_class.h b/sql/sql_class.h index 6181333e1b2..ee637b3726d 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -3880,7 +3880,6 @@ public: bool wsrep_apply_toi; /* applier processing in TOI */ bool wsrep_skip_append_keys; wsrep_gtid_t wsrep_sync_wait_gtid; - my_bool wsrep_donor; /* true if thread is SST donor servicing */ ulong wsrep_affected_rows; #endif /* WITH_WSREP */ }; -- cgit v1.2.1 From 3f481e52e41deecb05874989a51d6b009fda1a23 Mon Sep 17 00:00:00 2001 From: Nirbhay Choubey Date: Sun, 21 Aug 2016 20:09:05 -0400 Subject: Fixes for failing tests (post-merge). --- sql/sql_class.h | 1 - 1 file changed, 1 deletion(-) (limited to 'sql/sql_class.h') diff --git a/sql/sql_class.h b/sql/sql_class.h index ee637b3726d..bf3d043cc1a 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -660,7 +660,6 @@ typedef struct system_variables uint wsrep_sync_wait; ulong wsrep_retry_autocommit; ulong wsrep_OSU_method; - ulong wsrep_auto_increment_control; #endif double long_query_time_double; -- cgit v1.2.1