Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1dd3c8f8
Commit
1dd3c8f8
authored
Jun 28, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10.1' into 10.2
parents
04677f44
45cabf10
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
50 additions
and
10 deletions
+50
-10
mysql-test/r/max_statement_time.result
mysql-test/r/max_statement_time.result
+3
-0
mysql-test/suite/plugins/r/auth_ed25519.result
mysql-test/suite/plugins/r/auth_ed25519.result
+1
-1
mysql-test/t/max_statement_time.test
mysql-test/t/max_statement_time.test
+8
-0
plugin/auth_ed25519/server_ed25519.c
plugin/auth_ed25519/server_ed25519.c
+1
-1
sql/handler.cc
sql/handler.cc
+2
-2
sql/sql_class.h
sql/sql_class.h
+0
-2
sql/wsrep_sst.cc
sql/wsrep_sst.cc
+35
-4
No files found.
mysql-test/r/max_statement_time.result
View file @
1dd3c8f8
...
...
@@ -181,3 +181,6 @@ ERROR 70100: Query execution was interrupted (max_statement_time exceeded)
set max_statement_time = 0;
drop procedure pr;
drop table t1;
SET max_statement_time= 1;
CREATE TABLE t ENGINE=InnoDB SELECT * FROM seq_1_to_50000;
ERROR 70100: Query execution was interrupted (max_statement_time exceeded)
mysql-test/suite/plugins/r/auth_ed25519.result
View file @
1dd3c8f8
...
...
@@ -32,7 +32,7 @@ PLUGIN_AUTHOR Sergei Golubchik
PLUGIN_DESCRIPTION Elliptic curve ED25519 based authentication
PLUGIN_LICENSE GPL
LOAD_OPTION ON
PLUGIN_MATURITY
Beta
PLUGIN_MATURITY
Stable
PLUGIN_AUTH_VERSION 1.0-alpha
create user test1@localhost identified via ed25519 using 'ZIgUREUg5PVgQ6LskhXmO+eZLS0nC8be6HPjYWR4YJY';
show grants for test1@localhost;
...
...
mysql-test/t/max_statement_time.test
View file @
1dd3c8f8
...
...
@@ -5,6 +5,7 @@
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_sequence
.
inc
--
source
include
/
not_valgrind
.
inc
--
echo
...
...
@@ -226,3 +227,10 @@ call pr();
set
max_statement_time
=
0
;
drop
procedure
pr
;
drop
table
t1
;
#
# MDEV-16615 ASAN SEGV in handler::print_error or server crash after error upon CREATE TABLE
#
SET
max_statement_time
=
1
;
--
error
ER_STATEMENT_TIMEOUT
CREATE
TABLE
t
ENGINE
=
InnoDB
SELECT
*
FROM
seq_1_to_50000
;
plugin/auth_ed25519/server_ed25519.c
View file @
1dd3c8f8
...
...
@@ -101,7 +101,7 @@ maria_declare_plugin(ed25519)
NULL
,
NULL
,
"1.0-alpha"
,
MariaDB_PLUGIN_MATURITY_
BETA
MariaDB_PLUGIN_MATURITY_
STABLE
}
maria_declare_plugin_end
;
...
...
sql/handler.cc
View file @
1dd3c8f8
...
...
@@ -3418,8 +3418,8 @@ void handler::print_error(int error, myf errflag)
break
;
case
HA_ERR_ABORTED_BY_USER
:
{
DBUG_ASSERT
(
table
->
in_use
->
killed
);
table
->
in_use
->
send_kill_message
();
DBUG_ASSERT
(
ha_thd
()
->
killed
);
ha_thd
()
->
send_kill_message
();
DBUG_VOID_RETURN
;
}
case
HA_ERR_WRONG_MRG_TABLE_DEF
:
...
...
sql/sql_class.h
View file @
1dd3c8f8
...
...
@@ -5809,8 +5809,6 @@ inline int handler::ha_ft_read(uchar *buf)
inline
int
handler
::
ha_rnd_pos_by_record
(
uchar
*
buf
)
{
int
error
=
rnd_pos_by_record
(
buf
);
if
(
!
error
)
update_rows_read
();
table
->
status
=
error
?
STATUS_NOT_FOUND
:
0
;
return
error
;
}
...
...
sql/wsrep_sst.cc
View file @
1dd3c8f8
...
...
@@ -30,6 +30,8 @@
#include <cstdio>
#include <cstdlib>
#include <my_service_manager.h>
static
char
wsrep_defaults_file
[
FN_REFLEN
*
2
+
10
+
30
+
sizeof
(
WSREP_SST_OPT_CONF
)
+
sizeof
(
WSREP_SST_OPT_CONF_SUFFIX
)
+
...
...
@@ -177,6 +179,9 @@ bool wsrep_before_SE()
static
bool
sst_complete
=
false
;
static
bool
sst_needed
=
false
;
#define WSREP_EXTEND_TIMEOUT_INTERVAL 30
#define WSREP_TIMEDWAIT_SECONDS 10
void
wsrep_sst_grab
()
{
WSREP_INFO
(
"wsrep_sst_grab()"
);
...
...
@@ -188,11 +193,25 @@ void wsrep_sst_grab ()
// Wait for end of SST
bool
wsrep_sst_wait
()
{
if
(
mysql_mutex_lock
(
&
LOCK_wsrep_sst
))
abort
();
struct
timespec
wtime
=
{
WSREP_TIMEDWAIT_SECONDS
,
0
};
uint32
total_wtime
=
0
;
if
(
mysql_mutex_lock
(
&
LOCK_wsrep_sst
))
abort
();
WSREP_INFO
(
"Waiting for SST to complete."
);
while
(
!
sst_complete
)
{
WSREP_INFO
(
"Waiting for SST to complete."
);
mysql_cond_wait
(
&
COND_wsrep_sst
,
&
LOCK_wsrep_sst
);
mysql_cond_timedwait
(
&
COND_wsrep_sst
,
&
LOCK_wsrep_sst
,
&
wtime
);
if
(
!
sst_complete
)
{
total_wtime
+=
wtime
.
tv_sec
;
WSREP_DEBUG
(
"Waiting for SST to complete. waited %u secs."
,
total_wtime
);
service_manager_extend_timeout
(
WSREP_EXTEND_TIMEOUT_INTERVAL
,
"WSREP state transfer ongoing, current seqno: %ld"
,
local_seqno
);
}
}
if
(
local_seqno
>=
0
)
...
...
@@ -1347,10 +1366,22 @@ void wsrep_SE_init_grab()
void
wsrep_SE_init_wait
()
{
struct
timespec
wtime
=
{
WSREP_TIMEDWAIT_SECONDS
,
0
};
uint32
total_wtime
=
0
;
while
(
SE_initialized
==
false
)
{
mysql_cond_wait
(
&
COND_wsrep_sst_init
,
&
LOCK_wsrep_sst_init
);
mysql_cond_timedwait
(
&
COND_wsrep_sst_init
,
&
LOCK_wsrep_sst_init
,
&
wtime
);
if
(
!
SE_initialized
)
{
total_wtime
+=
wtime
.
tv_sec
;
WSREP_DEBUG
(
"Waiting for SST to complete. waited %u secs."
,
total_wtime
);
service_manager_extend_timeout
(
WSREP_EXTEND_TIMEOUT_INTERVAL
,
"WSREP SE initialization ongoing."
);
}
}
mysql_mutex_unlock
(
&
LOCK_wsrep_sst_init
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment