Skip to content

Commit 6286a05

Browse files
committed
Merge 10.4 into 10.5
2 parents 0792aff + 3c92050 commit 6286a05

File tree

80 files changed

+2760
-2483
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+2760
-2483
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,11 @@ ENDIF()
268268

269269
INCLUDE(wsrep)
270270

271-
OPTION(WITH_DBUG_TRACE "Enable DBUG_ENTER()/DBUG_EXIT()" ON)
271+
OPTION(WITH_DBUG_TRACE "Enable DBUG_ENTER()/DBUG_RETURN()/DBUG_PRINT()" ON)
272272
IF(WITH_DBUG_TRACE)
273-
ADD_DEFINITIONS(-DDBUG_TRACE)
273+
FOREACH(LANG C CXX)
274+
SET(CMAKE_${LANG}_FLAGS_DEBUG "${CMAKE_${LANG}_FLAGS_DEBUG} -DDBUG_TRACE")
275+
ENDFOREACH()
274276
ENDIF()
275277

276278
# Always enable debug sync for debug builds.

Docs/README-wsrep

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ wsrep_forced_binlog_format=none
365365
special value NONE, meaning that there is no forced binlog format in effect.
366366
This variable was introduced to support STATEMENT format replication during
367367
rolling schema upgrade processing. However, in most cases ROW replication
368-
is valid for asymmetrict schema replication.
368+
is valid for asymmetric schema replication.
369369

370370
State snapshot transfer options.
371371

@@ -416,7 +416,7 @@ wsrep_sst_donor=
416416

417417
6. ONLINE SCHEMA UPGRADE
418418

419-
Schema upgrades mean any data definition statements (DDL statemnents) run
419+
Schema upgrades mean any data definition statements (DDL statements) run
420420
for the database. They change the database structure and are non-
421421
transactional.
422422

@@ -429,7 +429,7 @@ wsrep_sst_donor=
429429

430430
With earlier releases, DDL processing happened always by Total Order
431431
Isolation (TOI) method. With TOI, the DDL was scheduled to be processed in
432-
same transaction seqeuncing 'slot' in each cluster node.
432+
same transaction sequencing 'slot' in each cluster node.
433433
The processing is secured by locking the affected table from any other use.
434434
With TOI method, the whole cluster has part of the database locked for the
435435
duration of the DDL processing.

Docs/myisam.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ HA_EXTRA_NO_KEYREAD=8 Normal read of records (def)
177177
HA_EXTRA_NO_USER_CHANGE=9 No user is allowed to write
178178
HA_EXTRA_KEY_CACHE=10
179179
HA_EXTRA_NO_KEY_CACHE=11
180-
HA_EXTRA_WAIT_LOCK=12 Wait until file is avalably (def)
180+
HA_EXTRA_WAIT_LOCK=12 Wait until file is available (def)
181181
HA_EXTRA_NO_WAIT_LOCK=13 If file is locked, return quickly
182182
HA_EXTRA_WRITE_CACHE=14 Use write cache in ha_write()
183183
HA_EXTRA_FLUSH_CACHE=15 flush write_record_cache

include/my_dbug.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ extern int (*dbug_sanity)(void);
7777
_db_stack_frame_.line= 0; \
7878
} while(0)
7979

80+
#define DBUG_PRINT(keyword,arglist) \
81+
do if (_db_pargs_(__LINE__,keyword)) _db_doprnt_ arglist; while(0)
82+
8083
#ifdef HAVE_ATTRIBUTE_CLEANUP
8184
#define DBUG_ENTER(a) struct _db_stack_frame_ _db_stack_frame_ __attribute__((cleanup(_db_return_))); \
8285
_db_enter_ (a,__FILE__,__LINE__,&_db_stack_frame_)
@@ -94,6 +97,7 @@ extern int (*dbug_sanity)(void);
9497
#define DBUG_ENTER(a)
9598
#define DBUG_RETURN(a1) return(a1)
9699
#define DBUG_VOID_RETURN return
100+
#define DBUG_PRINT(keyword,arglist) do{} while(0)
97101
#endif
98102

99103
#define DBUG_EXECUTE(keyword,a1) \
@@ -104,9 +108,6 @@ extern int (*dbug_sanity)(void);
104108
(_db_keyword_(0,(keyword), 0) ? (a1) : (a2))
105109
#define DBUG_EVALUATE_IF(keyword,a1,a2) \
106110
(_db_keyword_(0,(keyword), 1) ? (a1) : (a2))
107-
#define DBUG_PRINT(keyword,arglist) \
108-
do if (_db_pargs_(__LINE__,keyword)) _db_doprnt_ arglist; while(0)
109-
110111
#define DBUG_PUSH_EMPTY if (_dbug_on_) { DBUG_PUSH(""); }
111112
#define DBUG_POP_EMPTY if (_dbug_on_) { DBUG_POP(); }
112113
#define DBUG_PUSH(a1) _db_push_ (a1)
@@ -170,6 +171,7 @@ extern void _db_suicide_(void);
170171
#define DBUG_LEAVE
171172
#define DBUG_RETURN(a1) do { return(a1); } while(0)
172173
#define DBUG_VOID_RETURN do { return; } while(0)
174+
#define DBUG_PRINT(keyword, arglist) do { } while(0)
173175
#define DBUG_EXECUTE(keyword,a1) do { } while(0)
174176
#define DBUG_EXECUTE_IF(keyword,a1) do { } while(0)
175177
#define DBUG_EVALUATE(keyword,a1,a2) (a2)

mysql-test/main/alter_table-big.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
--source include/big_test.inc
66
# We are using some debug-only features in this test
77
--source include/have_debug.inc
8+
--source include/have_debug_sync.inc
89
# Also we are using SBR to check that statements are executed
910
# in proper order.
1011
--source include/have_binlog_format_mixed_or_statement.inc

mysql-test/main/flush_read_lock_kill.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
--source include/not_embedded.inc
88

99
--source include/have_debug.inc
10+
--source include/have_debug_sync.inc
1011

1112
# This test needs transactional engine as otherwise COMMIT
1213
# won't block FLUSH TABLES WITH GLOBAL READ LOCK.

mysql-test/main/partition_sync.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
--source include/have_partition.inc
22
--source include/have_debug.inc
3+
--source include/have_debug_sync.inc
34
# Save the initial number of concurrent sessions.
45
--source include/count_sessions.inc
56

mysql-test/main/show_explain.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Tests for SHOW EXPLAIN FOR functionality
33
#
44
--source include/have_debug.inc
5+
--source include/have_debug_sync.inc
56
--source include/have_innodb.inc
67

78

mysql-test/main/show_explain_non_select.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# SHOW EXPLAIN tests for non-select subqueries
33
#
44
--source include/have_debug.inc
5+
--source include/have_debug_sync.inc
56
--source include/have_innodb.inc
67
--source include/not_embedded.inc
78

mysql-test/main/view_debug.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
--source include/have_debug.inc
3+
--source include/have_debug_sync.inc
34

45
--echo #
56
--echo #MDEV-8087:Server crashed in Time_and_counter_tracker::incr_loops

0 commit comments

Comments
 (0)