Skip to content

Commit e696e9e

Browse files
committed
Merge 10.3 into 10.4
2 parents 2b66cd2 + 9f8871d commit e696e9e

File tree

6 files changed

+23
-22
lines changed

6 files changed

+23
-22
lines changed

cmake/package_name.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,11 @@ IF(NOT VERSION)
110110
SET(DEFAULT_MACHINE "x86")
111111
ENDIF()
112112
ENDIF()
113-
113+
114+
IF(NOT DEFAULT_MACHINE MATCHES "64" AND 64BIT)
115+
SET(DEFAULT_MACHINE "${DEFAULT_MACHINE}-64bit")
116+
ENDIF()
117+
114118
IF(NOT PLATFORM)
115119
SET(PLATFORM ${DEFAULT_PLATFORM})
116120
ENDIF()

mysql-test/suite/innodb_gis/disabled.def

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@
1010
#
1111
##############################################################################
1212

13+
rtree_concurrent_srch : MDEV-15284 COUNT(*) mismatch
14+
rtree_recovery : MDEV-15284 COUNT(*) mismatch

storage/innobase/page/page0cur.cc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,12 +1299,12 @@ page_cur_insert_rec_low(
12991299

13001300
#ifdef HAVE_valgrind
13011301
{
1302-
const void* rec_start __attribute__((unused))
1303-
= rec - rec_offs_extra_size(offsets);
1304-
ulint extra_size __attribute__((unused))
1305-
= rec_offs_extra_size(offsets)
1306-
- (rec_offs_comp(offsets)
1307-
? REC_N_NEW_EXTRA_BYTES
1302+
const void* rec_start __attribute__((unused))
1303+
= rec - rec_offs_extra_size(offsets);
1304+
ulint extra_size __attribute__((unused))
1305+
= rec_offs_extra_size(offsets)
1306+
- (rec_offs_comp(offsets)
1307+
? REC_N_NEW_EXTRA_BYTES
13081308
: REC_N_OLD_EXTRA_BYTES);
13091309

13101310
/* All data bytes of the record must be valid. */
@@ -1530,13 +1530,13 @@ page_cur_insert_rec_zip(
15301530

15311531
#ifdef HAVE_valgrind
15321532
{
1533-
const void* rec_start __attribute__((unused))
1534-
= rec - rec_offs_extra_size(offsets);
1535-
ulint extra_size __attribute__((unused))
1536-
= rec_offs_extra_size(offsets)
1537-
- (rec_offs_comp(offsets)
1538-
? REC_N_NEW_EXTRA_BYTES
1539-
: REC_N_OLD_EXTRA_BYTES);
1533+
const void* rec_start __attribute__((unused))
1534+
= rec - rec_offs_extra_size(offsets);
1535+
ulint extra_size __attribute__((unused))
1536+
= rec_offs_extra_size(offsets)
1537+
- (rec_offs_comp(offsets)
1538+
? REC_N_NEW_EXTRA_BYTES
1539+
: REC_N_OLD_EXTRA_BYTES);
15401540

15411541
/* All data bytes of the record must be valid. */
15421542
MEM_CHECK_DEFINED(rec, rec_offs_data_size(offsets));

storage/innobase/trx/trx0purge.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -873,15 +873,16 @@ static void trx_purge_rseg_get_next_history_log(
873873

874874
trx_no = mach_read_from_8(log_hdr + TRX_UNDO_TRX_NO);
875875
ut_ad(mach_read_from_2(log_hdr + TRX_UNDO_NEEDS_PURGE) <= 1);
876+
const byte needs_purge = log_hdr[TRX_UNDO_NEEDS_PURGE + 1];
876877

877-
mtr_commit(&mtr);
878+
mtr.commit();
878879

879880
mutex_enter(&purge_sys.rseg->mutex);
880881

881882
purge_sys.rseg->last_page_no = static_cast<uint32_t>(
882883
prev_log_addr.page);
883884
purge_sys.rseg->set_last_commit(prev_log_addr.boffset, trx_no);
884-
purge_sys.rseg->needs_purge = log_hdr[TRX_UNDO_NEEDS_PURGE + 1] != 0;
885+
purge_sys.rseg->needs_purge = needs_purge != 0;
885886

886887
/* Purge can also produce events, however these are already ordered
887888
in the rollback segment and any user generated event will be greater

storage/maria/ma_rt_test.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ static int run_test(const char *filename)
133133
int key_length=8;
134134
int null_fields=0;
135135
int nrecords=sizeof(rt_data)/(sizeof(double)*4);/* 40 */
136-
int rec_length=0;
137136
int uniques=0;
138137
int i, max_i;
139138
int error;
@@ -153,15 +152,13 @@ static int run_test(const char *filename)
153152

154153
recinfo[0].type=FIELD_NORMAL;
155154
recinfo[0].length=1; /* For NULL bits */
156-
rec_length=1;
157155

158156
/* Define 2*ndims columns for coordinates*/
159157

160158
for (i=1; i<=2*ndims ;i++)
161159
{
162160
recinfo[i].type=FIELD_NORMAL;
163161
recinfo[i].length=key_length;
164-
rec_length+=key_length;
165162
}
166163

167164
/* Define a key with 2*ndims segments */

storage/myisam/rt_test.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ static int run_test(const char *filename)
104104
int key_length=8;
105105
int null_fields=0;
106106
int nrecords=sizeof(rt_data)/(sizeof(double)*4);/* 3000;*/
107-
int rec_length=0;
108107
int uniques=0;
109108
int i, max_i;
110109
int error;
@@ -124,14 +123,12 @@ static int run_test(const char *filename)
124123

125124
recinfo[0].type=FIELD_NORMAL;
126125
recinfo[0].length=1; /* For NULL bits */
127-
rec_length=1;
128126

129127
/* Define 2*ndims columns for coordinates*/
130128

131129
for (i=1; i<=2*ndims ;i++){
132130
recinfo[i].type=FIELD_NORMAL;
133131
recinfo[i].length=key_length;
134-
rec_length+=key_length;
135132
}
136133

137134
/* Define a key with 2*ndims segments */

0 commit comments

Comments
 (0)