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
bce807f7
Commit
bce807f7
authored
Nov 05, 2017
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename some errors that uses MySQL -> MariaDB
parent
c9f612db
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
44 additions
and
47 deletions
+44
-47
mysql-test/extra/binlog_tests/binlog_index.inc
mysql-test/extra/binlog_tests/binlog_index.inc
+1
-1
mysql-test/extra/rpl_tests/rpl_binlog_errors.inc
mysql-test/extra/rpl_tests/rpl_binlog_errors.inc
+2
-2
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+6
-6
mysql-test/suite/binlog/r/binlog_index.result
mysql-test/suite/binlog/r/binlog_index.result
+1
-1
mysql-test/suite/rpl/r/rpl_binlog_errors.result
mysql-test/suite/rpl/r/rpl_binlog_errors.result
+2
-2
sql/handler.cc
sql/handler.cc
+1
-1
sql/log.cc
sql/log.cc
+11
-14
sql/share/errmsg-utf8.txt
sql/share/errmsg-utf8.txt
+19
-19
sql/wsrep_mysqld.cc
sql/wsrep_mysqld.cc
+1
-1
No files found.
mysql-test/extra/binlog_tests/binlog_index.inc
View file @
bce807f7
...
...
@@ -18,7 +18,7 @@ call mtr.add_suppression('Attempting backtrace');
call
mtr
.
add_suppression
(
'MYSQL_BIN_LOG::purge_logs failed to process registered files that would be purged.'
);
call
mtr
.
add_suppression
(
'MYSQL_BIN_LOG::open failed to sync the index file'
);
call
mtr
.
add_suppression
(
'Turning logging off for the whole duration of the MySQL server process.'
);
call
mtr
.
add_suppression
(
'Could not
open
.*'
);
call
mtr
.
add_suppression
(
'Could not
use
.*'
);
call
mtr
.
add_suppression
(
'MYSQL_BIN_LOG::purge_logs failed to clean registers before purging logs.'
);
flush
tables
;
...
...
mysql-test/extra/rpl_tests/rpl_binlog_errors.inc
View file @
bce807f7
...
...
@@ -286,7 +286,7 @@ SET GLOBAL debug_dbug=@old_debug;
### file or failure to write the rotate event.
call
mtr
.
add_suppression
(
"MYSQL_BIN_LOG::open failed to sync the index file."
);
call
mtr
.
add_suppression
(
"Could not
open
.*"
);
call
mtr
.
add_suppression
(
"Could not
use
.*"
);
RESET
MASTER
;
SHOW
WARNINGS
;
...
...
@@ -392,7 +392,7 @@ RESET MASTER;
call
mtr
.
add_suppression
(
"Slave I/O: Relay log write failure: could not queue event from master.*"
);
call
mtr
.
add_suppression
(
"Error writing file .*"
);
call
mtr
.
add_suppression
(
"Could not
open
.*"
);
call
mtr
.
add_suppression
(
"Could not
use
.*"
);
call
mtr
.
add_suppression
(
"MYSQL_BIN_LOG::open failed to sync the index file."
);
call
mtr
.
add_suppression
(
"Can't generate a unique log-filename .*"
);
--
echo
###################### TEST #13
...
...
mysql-test/mysql-test-run.pl
View file @
bce807f7
...
...
@@ -1927,10 +1927,10 @@ sub collect_mysqld_features_from_running_server ()
#print "Major: $1 Minor: $2 Build: $3\n";
$mysql_version_id
=
$1
*
10000
+
$2
*
100
+
$3
;
#print "mysql_version_id: $mysql_version_id\n";
mtr_report
("
M
ySQL
Version $1.$2.$3
");
mtr_report
("
M
ariaDB
Version $1.$2.$3
");
$mysql_version_extra
=
$4
;
}
mtr_error
("
Could not find version of M
ySQ
L
")
unless
$mysql_version_id
;
mtr_error
("
Could not find version of M
ariaDB
L
")
unless
$mysql_version_id
;
}
sub
find_mysqld
{
...
...
@@ -2220,7 +2220,7 @@ sub environment_setup {
$ENV
{'
UMASK_DIR
'}
=
"
0770
";
# The octal *string*
#
# M
ySQL
tests can produce output in various character sets
# M
ariaDB
tests can produce output in various character sets
# (especially, ctype_xxx.test). To avoid confusing Perl
# with output which is incompatible with the current locale
# settings, we reset the current values of LC_ALL and LC_CTYPE to "C".
...
...
@@ -2551,7 +2551,7 @@ sub setup_vardir() {
if
(
check_socket_path_length
("
$opt_tmpdir
/testsocket.sock
")){
mtr_error
("
Socket path '
$opt_tmpdir
' too long, it would be
",
"
truncated and thus not possible to use for connection to
",
"
M
ySQL
Server. Set a shorter with --tmpdir=<path> option
");
"
M
ariaDB
Server. Set a shorter with --tmpdir=<path> option
");
}
# copy all files from std_data into var/std_data
...
...
@@ -4407,12 +4407,12 @@ sub extract_warning_lines ($$) {
qr/Slave I\/
O:
error
reconnecting
to
master
'
.*
'
-
retry
-
time
:
[
1
-
3
]
retries
/
,
qr/Slave I\/
0
:
Master
command
COM_BINLOG_DUMP
failed
/
,
qr/Error reading packet/
,
qr/Lost connection to M
ySQL
server at 'reading initial communication packet'/
,
qr/Lost connection to M
ariaDB
server at 'reading initial communication packet'/
,
qr/Failed on request_dump/
,
qr/Slave: Can't drop database.* database doesn't exist/
,
qr/Slave: Operation DROP USER failed for 'create_rout_db'/
,
qr|Checking table: '\..mtr.test_suppressions'|
,
qr|Table \./test/bug53592 has a primary key in InnoDB data dictionary, but not in
MySQL
|
,
qr|Table \./test/bug53592 has a primary key in InnoDB data dictionary, but not in|
,
qr|Table '\..mtr.test_suppressions' is marked as crashed and should be repaired|
,
qr|Table 'test_suppressions' is marked as crashed and should be repaired|
,
qr|Can't open shared library|
,
...
...
mysql-test/suite/binlog/r/binlog_index.result
View file @
bce807f7
...
...
@@ -2,7 +2,7 @@ call mtr.add_suppression('Attempting backtrace');
call mtr.add_suppression('MYSQL_BIN_LOG::purge_logs failed to process registered files that would be purged.');
call mtr.add_suppression('MYSQL_BIN_LOG::open failed to sync the index file');
call mtr.add_suppression('Turning logging off for the whole duration of the MySQL server process.');
call mtr.add_suppression('Could not
open
.*');
call mtr.add_suppression('Could not
use
.*');
call mtr.add_suppression('MYSQL_BIN_LOG::purge_logs failed to clean registers before purging logs.');
flush tables;
RESET MASTER;
...
...
mysql-test/suite/rpl/r/rpl_binlog_errors.result
View file @
bce807f7
...
...
@@ -173,7 +173,7 @@ SET SQL_LOG_BIN=1;
SET GLOBAL debug_dbug=@old_debug;
###################### TEST #10
call mtr.add_suppression("MYSQL_BIN_LOG::open failed to sync the index file.");
call mtr.add_suppression("Could not
open
.*");
call mtr.add_suppression("Could not
use
.*");
RESET MASTER;
SHOW WARNINGS;
Level Code Message
...
...
@@ -233,7 +233,7 @@ include/rpl_reset.inc
connection slave;
call mtr.add_suppression("Slave I/O: Relay log write failure: could not queue event from master.*");
call mtr.add_suppression("Error writing file .*");
call mtr.add_suppression("Could not
open
.*");
call mtr.add_suppression("Could not
use
.*");
call mtr.add_suppression("MYSQL_BIN_LOG::open failed to sync the index file.");
call mtr.add_suppression("Can't generate a unique log-filename .*");
###################### TEST #13
...
...
sql/handler.cc
View file @
bce807f7
...
...
@@ -2242,7 +2242,7 @@ int ha_start_consistent_snapshot(THD *thd)
*/
if
(
warn
)
push_warning
(
thd
,
Sql_condition
::
WARN_LEVEL_WARN
,
ER_UNKNOWN_ERROR
,
"This M
ySQL
server does not support any "
"This M
ariaDB
server does not support any "
"consistent-read capable storage engine"
);
return
0
;
}
...
...
sql/log.cc
View file @
bce807f7
...
...
@@ -109,6 +109,13 @@ static ulonglong binlog_status_group_commit_trigger_timeout;
static
char
binlog_snapshot_file
[
FN_REFLEN
];
static
ulonglong
binlog_snapshot_position
;
static
const
char
*
fatal_log_error
=
"Could not use %s for logging (error %d). "
"Turning logging off for the whole duration of the MariaDB server process. "
"To turn it on again: fix the cause, shutdown the MariaDB server and "
"restart it."
;
static
SHOW_VAR
binlog_status_vars_detail
[]
=
{
{
"commits"
,
...
...
@@ -2690,10 +2697,7 @@ bool MYSQL_LOG::open(
DBUG_RETURN
(
0
);
err:
sql_print_error
(
"Could not use %s for logging (error %d). \
Turning logging off for the whole duration of the MySQL server process. \
To turn it on again: fix the cause, \
shutdown the MySQL server and restart it."
,
name
,
errno
);
sql_print_error
(
fatal_log_error
,
name
,
errno
);
if
(
file
>=
0
)
mysql_file_close
(
file
,
MYF
(
0
));
end_io_cache
(
&
log_file
);
...
...
@@ -3783,15 +3787,13 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
DBUG_RETURN
(
0
);
err:
int
tmp_errno
=
errno
;
#ifdef HAVE_REPLICATION
if
(
is_inited_purge_index_file
())
purge_index_entry
(
NULL
,
NULL
,
need_mutex
);
close_purge_index_file
();
#endif
sql_print_error
(
"Could not use %s for logging (error %d). \
Turning logging off for the whole duration of the MySQL server process. \
To turn it on again: fix the cause, \
shutdown the MySQL server and restart it."
,
name
,
errno
);
sql_print_error
(
fatal_log_error
,
name
,
tmp_errno
);
if
(
new_xid_list_entry
)
my_free
(
new_xid_list_entry
);
if
(
file
>=
0
)
...
...
@@ -5218,12 +5220,7 @@ int MYSQL_BIN_LOG::new_file_impl(bool need_lock)
- ...
*/
close
(
LOG_CLOSE_INDEX
);
sql_print_error
(
"Could not open %s for logging (error %d). "
"Turning logging off for the whole duration "
"of the MySQL server process. To turn it on "
"again: fix the cause, shutdown the MySQL "
"server and restart it."
,
new_name_ptr
,
errno
);
sql_print_error
(
fatal_log_error
,
new_name_ptr
,
errno
);
}
mysql_mutex_unlock
(
&
LOCK_index
);
...
...
sql/share/errmsg-utf8.txt
View file @
bce807f7
This diff is collapsed.
Click to expand it.
sql/wsrep_mysqld.cc
View file @
bce807f7
...
...
@@ -515,7 +515,7 @@ static void wsrep_synced_cb(void* app_ctx)
if
(
wsrep_restart_slave_activated
)
{
int
rcode
;
WSREP_INFO
(
"M
ySQL
slave restart"
);
WSREP_INFO
(
"M
ariaDB
slave restart"
);
wsrep_restart_slave_activated
=
FALSE
;
mysql_mutex_lock
(
&
LOCK_active_mi
);
...
...
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