Skip to content

Commit

Permalink
Merge 10.4 into 10.5
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Nov 17, 2020
2 parents 83a5567 + bbf0b55 commit fabdad6
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
2 changes: 2 additions & 0 deletions mysql-test/suite/galera/r/MDEV-24063.result
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
connection node_2;
connection node_1;
connection node_1;
connection node_2;
connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2;
connection node_2a;
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY);
Expand Down
6 changes: 6 additions & 0 deletions mysql-test/suite/galera/t/MDEV-24063.test
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

--source include/galera_cluster.inc

--let $node_1=node_1
--let $node_2=node_2
--source include/auto_increment_offset_save.inc

--connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2
--connection node_2a
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY);
Expand All @@ -18,3 +22,5 @@ SET GLOBAL wsrep_on=OFF;
--source include/start_mysqld.inc

DROP TABLE t1;

--source include/auto_increment_offset_restore.inc
6 changes: 6 additions & 0 deletions mysql-test/suite/maria/repair.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# We should not run this test with embedded as we are using
# max_session_mem_used, which causes things to fail/not fail randomly
# as memory usage is different compared to normal server.

--source include/not_embedded.inc

#
# MDEV-11539 test_if_reopen: Assertion `strcmp(share->unique_file_name,filename) || share->last_version' failed upon select from I_S
#
Expand Down
2 changes: 2 additions & 0 deletions mysql-test/suite/perfschema/t/nesting.test
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
# event, which changes the test output.
--source include/not_windows.inc
--source include/no_protocol.inc
# Work around MDEV-24232: WSREP causes extra operations on LOCK_thd_data etc.
--source include/have_wsrep.inc
--source ../include/wait_for_pfs_thread_count.inc

--disable_query_log
Expand Down
8 changes: 7 additions & 1 deletion sql/structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,13 @@ class Timeval: public timeval
Timeval(my_time_t sec, ulong usec)
{
tv_sec= sec;
tv_usec= usec;
/*
Since tv_usec is not always of type ulong, cast usec parameter
explicitly to uint to avoid compiler warnings about losing
integer precision.
*/
DBUG_ASSERT(usec < 1000000);
tv_usec= (uint)usec;
}
explicit Timeval(const timeval &tv)
:timeval(tv)
Expand Down

0 comments on commit fabdad6

Please sign in to comment.