Commit 1b2acc5b authored by Marko Mäkelä's avatar Marko Mäkelä

Merge 10.4 into 10.5

parents 2c9f2a4c e696e9e6
...@@ -110,7 +110,11 @@ IF(NOT VERSION) ...@@ -110,7 +110,11 @@ IF(NOT VERSION)
SET(DEFAULT_MACHINE "x86") SET(DEFAULT_MACHINE "x86")
ENDIF() ENDIF()
ENDIF() ENDIF()
IF(NOT DEFAULT_MACHINE MATCHES "64" AND 64BIT)
SET(DEFAULT_MACHINE "${DEFAULT_MACHINE}-64bit")
ENDIF()
IF(NOT PLATFORM) IF(NOT PLATFORM)
SET(PLATFORM ${DEFAULT_PLATFORM}) SET(PLATFORM ${DEFAULT_PLATFORM})
ENDIF() ENDIF()
......
...@@ -10,3 +10,5 @@ ...@@ -10,3 +10,5 @@
# #
############################################################################## ##############################################################################
rtree_concurrent_srch : MDEV-15284 COUNT(*) mismatch
rtree_recovery : MDEV-15284 COUNT(*) mismatch
...@@ -871,14 +871,15 @@ static void trx_purge_rseg_get_next_history_log( ...@@ -871,14 +871,15 @@ static void trx_purge_rseg_get_next_history_log(
trx_no = mach_read_from_8(log_hdr + TRX_UNDO_TRX_NO); trx_no = mach_read_from_8(log_hdr + TRX_UNDO_TRX_NO);
ut_ad(mach_read_from_2(log_hdr + TRX_UNDO_NEEDS_PURGE) <= 1); ut_ad(mach_read_from_2(log_hdr + TRX_UNDO_NEEDS_PURGE) <= 1);
const byte needs_purge = log_hdr[TRX_UNDO_NEEDS_PURGE + 1];
mtr_commit(&mtr); mtr.commit();
mutex_enter(&purge_sys.rseg->mutex); mutex_enter(&purge_sys.rseg->mutex);
purge_sys.rseg->last_page_no = prev_log_addr.page; purge_sys.rseg->last_page_no = prev_log_addr.page;
purge_sys.rseg->set_last_commit(prev_log_addr.boffset, trx_no); purge_sys.rseg->set_last_commit(prev_log_addr.boffset, trx_no);
purge_sys.rseg->needs_purge = log_hdr[TRX_UNDO_NEEDS_PURGE + 1] != 0; purge_sys.rseg->needs_purge = needs_purge != 0;
/* Purge can also produce events, however these are already ordered /* Purge can also produce events, however these are already ordered
in the rollback segment and any user generated event will be greater in the rollback segment and any user generated event will be greater
......
...@@ -133,7 +133,6 @@ static int run_test(const char *filename) ...@@ -133,7 +133,6 @@ static int run_test(const char *filename)
int key_length=8; int key_length=8;
int null_fields=0; int null_fields=0;
int nrecords=sizeof(rt_data)/(sizeof(double)*4);/* 40 */ int nrecords=sizeof(rt_data)/(sizeof(double)*4);/* 40 */
int rec_length=0;
int uniques=0; int uniques=0;
int i, max_i; int i, max_i;
int error; int error;
...@@ -154,7 +153,6 @@ static int run_test(const char *filename) ...@@ -154,7 +153,6 @@ static int run_test(const char *filename)
recinfo[0].type=FIELD_NORMAL; recinfo[0].type=FIELD_NORMAL;
recinfo[0].length=1; /* For NULL bits */ recinfo[0].length=1; /* For NULL bits */
rec_length=1;
/* Define 2*ndims columns for coordinates*/ /* Define 2*ndims columns for coordinates*/
...@@ -162,7 +160,6 @@ static int run_test(const char *filename) ...@@ -162,7 +160,6 @@ static int run_test(const char *filename)
{ {
recinfo[i].type=FIELD_NORMAL; recinfo[i].type=FIELD_NORMAL;
recinfo[i].length=key_length; recinfo[i].length=key_length;
rec_length+=key_length;
} }
/* Define a key with 2*ndims segments */ /* Define a key with 2*ndims segments */
......
...@@ -104,7 +104,6 @@ static int run_test(const char *filename) ...@@ -104,7 +104,6 @@ static int run_test(const char *filename)
int key_length=8; int key_length=8;
int null_fields=0; int null_fields=0;
int nrecords=sizeof(rt_data)/(sizeof(double)*4);/* 3000;*/ int nrecords=sizeof(rt_data)/(sizeof(double)*4);/* 3000;*/
int rec_length=0;
int uniques=0; int uniques=0;
int i, max_i; int i, max_i;
int error; int error;
...@@ -125,14 +124,12 @@ static int run_test(const char *filename) ...@@ -125,14 +124,12 @@ static int run_test(const char *filename)
recinfo[0].type=FIELD_NORMAL; recinfo[0].type=FIELD_NORMAL;
recinfo[0].length=1; /* For NULL bits */ recinfo[0].length=1; /* For NULL bits */
rec_length=1;
/* Define 2*ndims columns for coordinates*/ /* Define 2*ndims columns for coordinates*/
for (i=1; i<=2*ndims ;i++){ for (i=1; i<=2*ndims ;i++){
recinfo[i].type=FIELD_NORMAL; recinfo[i].type=FIELD_NORMAL;
recinfo[i].length=key_length; recinfo[i].length=key_length;
rec_length+=key_length;
} }
/* Define a key with 2*ndims segments */ /* Define a key with 2*ndims segments */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment