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
5ff66fb0
Commit
5ff66fb0
authored
Jan 31, 2020
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.2 into 10.3
parents
dbbe9961
256994ef
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
100 additions
and
93 deletions
+100
-93
.gitignore
.gitignore
+2
-0
man/CMakeLists.txt
man/CMakeLists.txt
+4
-3
mysql-test/main/locale.opt
mysql-test/main/locale.opt
+1
-0
mysql-test/main/locale.result
mysql-test/main/locale.result
+1
-1
mysql-test/suite/innodb_fts/r/misc_debug.result
mysql-test/suite/innodb_fts/r/misc_debug.result
+9
-0
mysql-test/suite/innodb_fts/t/misc_debug.test
mysql-test/suite/innodb_fts/t/misc_debug.test
+13
-0
sql/derror.cc
sql/derror.cc
+5
-3
sql/log.cc
sql/log.cc
+14
-20
sql/log.h
sql/log.h
+13
-2
storage/innobase/dict/dict0dict.cc
storage/innobase/dict/dict0dict.cc
+5
-2
storage/innobase/fil/fil0crypt.cc
storage/innobase/fil/fil0crypt.cc
+4
-45
storage/innobase/fts/fts0opt.cc
storage/innobase/fts/fts0opt.cc
+0
-2
storage/innobase/row/row0mysql.cc
storage/innobase/row/row0mysql.cc
+5
-0
storage/tokudb/CMakeLists.txt
storage/tokudb/CMakeLists.txt
+2
-0
storage/tokudb/man/CMakeLists.txt
storage/tokudb/man/CMakeLists.txt
+2
-0
storage/tokudb/man/tokuft_logprint.1
storage/tokudb/man/tokuft_logprint.1
+0
-0
storage/tokudb/man/tokuftdump.1
storage/tokudb/man/tokuftdump.1
+0
-0
support-files/CMakeLists.txt
support-files/CMakeLists.txt
+20
-15
No files found.
.gitignore
View file @
5ff66fb0
...
@@ -246,6 +246,8 @@ support-files/mysqld_multi.server
...
@@ -246,6 +246,8 @@ support-files/mysqld_multi.server
support-files/wsrep.cnf
support-files/wsrep.cnf
support-files/wsrep_notify
support-files/wsrep_notify
support-files/policy/selinux/mysqld-safe.pp
support-files/policy/selinux/mysqld-safe.pp
support-files/sysusers.conf
support-files/tmpfiles.conf
support-files/mariadb.pp
support-files/mariadb.pp
tags
tags
tests/async_queries
tests/async_queries
...
...
man/CMakeLists.txt
View file @
5ff66fb0
# Copyright (c) 2012,
Monty Program Ab
# Copyright (c) 2012,
2020, MariaDB
#
#
# This program is free software; you can redistribute it and/or modify
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
...
@@ -21,7 +21,7 @@ SET(MAN1_SERVER innochecksum.1 my_print_defaults.1 myisam_ftdump.1 myisamchk.1
...
@@ -21,7 +21,7 @@ SET(MAN1_SERVER innochecksum.1 my_print_defaults.1 myisam_ftdump.1 myisamchk.1
mysql_secure_installation.1 mysql_setpermission.1
mysql_secure_installation.1 mysql_setpermission.1
mysql_tzinfo_to_sql.1 mysql_upgrade.1
mysql_tzinfo_to_sql.1 mysql_upgrade.1
mysqld_multi.1 mysqld_safe.1 mysqldumpslow.1 mysqlhotcopy.1
mysqld_multi.1 mysqld_safe.1 mysqldumpslow.1 mysqlhotcopy.1
mysqltest.1
perror.1 replace.1 resolve_stack_dump.1
perror.1 replace.1 resolve_stack_dump.1
resolveip.1 mariadb-service-convert.1
resolveip.1 mariadb-service-convert.1
mysqld_safe_helper.1 tokuftdump.1 wsrep_sst_common.1
mysqld_safe_helper.1 tokuftdump.1 wsrep_sst_common.1
wsrep_sst_mysqldump.1 wsrep_sst_rsync.1
wsrep_sst_mysqldump.1 wsrep_sst_rsync.1
...
@@ -36,7 +36,8 @@ SET(MAN1_CLIENT msql2mysql.1 mysql.1 mysql_find_rows.1 mysql_waitpid.1
...
@@ -36,7 +36,8 @@ SET(MAN1_CLIENT msql2mysql.1 mysql.1 mysql_find_rows.1 mysql_waitpid.1
mysql_plugin.1 mysql_embedded.1
)
mysql_plugin.1 mysql_embedded.1
)
SET
(
MAN1_DEVEL mysql_config.1
)
SET
(
MAN1_DEVEL mysql_config.1
)
SET
(
MAN1_TEST mysql-stress-test.pl.1 mysql-test-run.pl.1 mysql_client_test.1
SET
(
MAN1_TEST mysql-stress-test.pl.1 mysql-test-run.pl.1 mysql_client_test.1
mysqltest_embedded.1 mysql_client_test_embedded.1 my_safe_process.1
)
mysqltest.1 mysqltest_embedded.1 mysql_client_test_embedded.1
my_safe_process.1
)
INSTALL
(
FILES
${
MAN1_SERVER
}
DESTINATION
${
INSTALL_MANDIR
}
/man1 COMPONENT ManPagesServer
)
INSTALL
(
FILES
${
MAN1_SERVER
}
DESTINATION
${
INSTALL_MANDIR
}
/man1 COMPONENT ManPagesServer
)
INSTALL
(
FILES
${
MAN8_SERVER
}
DESTINATION
${
INSTALL_MANDIR
}
/man8 COMPONENT ManPagesServer
)
INSTALL
(
FILES
${
MAN8_SERVER
}
DESTINATION
${
INSTALL_MANDIR
}
/man8 COMPONENT ManPagesServer
)
...
...
mysql-test/main/locale.opt
0 → 100644
View file @
5ff66fb0
--lc-messages=de_DE
mysql-test/main/locale.result
View file @
5ff66fb0
...
@@ -51,7 +51,7 @@ DROP TABLE t1;
...
@@ -51,7 +51,7 @@ DROP TABLE t1;
#
#
SET lc_messages=sr_YU;
SET lc_messages=sr_YU;
Warnings:
Warnings:
Warning 1287 'sr_YU' is
deprecated and will be removed in a future release. Please use sr_RS instead
Warning 1287 'sr_YU' is
t veraltet. Bitte benutzen Sie 'sr_RS'
SHOW VARIABLES LIKE 'lc_messages';
SHOW VARIABLES LIKE 'lc_messages';
Variable_name Value
Variable_name Value
lc_messages sr_RS
lc_messages sr_RS
...
...
mysql-test/suite/innodb_fts/r/misc_debug.result
View file @
5ff66fb0
...
@@ -17,3 +17,12 @@ ALTER TABLE t ADD FULLTEXT INDEX (b(64));
...
@@ -17,3 +17,12 @@ ALTER TABLE t ADD FULLTEXT INDEX (b(64));
ERROR HY000: Unknown error
ERROR HY000: Unknown error
SET SESSION debug_dbug=@saved_debug_dbug;
SET SESSION debug_dbug=@saved_debug_dbug;
DROP TABLE t;
DROP TABLE t;
CREATE TABLE t1 (pk INT, a VARCHAR(8), PRIMARY KEY(pk),
FULLTEXT KEY(a)) ENGINE=InnoDB;
CREATE TABLE t2 (b INT, FOREIGN KEY(b) REFERENCES t1(pk)) ENGINE=InnoDB;
DROP TABLE t1;
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails
SET DEBUG_DBUG="+d,fts_instrument_sync";
INSERT INTO t1 VALUES(1, "mariadb");
ALTER TABLE t1 FORCE;
DROP TABLE t2, t1;
mysql-test/suite/innodb_fts/t/misc_debug.test
View file @
5ff66fb0
...
@@ -39,3 +39,16 @@ ALTER TABLE t ADD FULLTEXT INDEX (b(64));
...
@@ -39,3 +39,16 @@ ALTER TABLE t ADD FULLTEXT INDEX (b(64));
SET
SESSION
debug_dbug
=@
saved_debug_dbug
;
SET
SESSION
debug_dbug
=@
saved_debug_dbug
;
DROP
TABLE
t
;
DROP
TABLE
t
;
# MDEV-21550 Assertion `!table->fts->in_queue' failed in
# fts_optimize_remove_table
CREATE
TABLE
t1
(
pk
INT
,
a
VARCHAR
(
8
),
PRIMARY
KEY
(
pk
),
FULLTEXT
KEY
(
a
))
ENGINE
=
InnoDB
;
CREATE
TABLE
t2
(
b
INT
,
FOREIGN
KEY
(
b
)
REFERENCES
t1
(
pk
))
ENGINE
=
InnoDB
;
--
error
ER_ROW_IS_REFERENCED_2
DROP
TABLE
t1
;
SET
DEBUG_DBUG
=
"+d,fts_instrument_sync"
;
INSERT
INTO
t1
VALUES
(
1
,
"mariadb"
);
ALTER
TABLE
t1
FORCE
;
# Cleanup
DROP
TABLE
t2
,
t1
;
sql/derror.cc
View file @
5ff66fb0
/* Copyright (c) 2000, 2011, Oracle and/or its affiliates.
/* Copyright (c) 2000, 2011, Oracle and/or its affiliates.
Copyright (C) 2011
Monty Program Ab
Copyright (C) 2011
, 2020, MariaDB
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
...
@@ -84,8 +84,10 @@ bool init_errmessage(void)
...
@@ -84,8 +84,10 @@ bool init_errmessage(void)
if
(
!
use_english
)
if
(
!
use_english
)
{
{
/* Read messages from file. */
/* Read messages from file. */
use_english
=
!
read_texts
(
ERRMSG_FILE
,
lang
,
&
original_error_messages
);
use_english
=
read_texts
(
ERRMSG_FILE
,
lang
,
&
original_error_messages
);
error
=
TRUE
;
error
=
use_english
!=
FALSE
;
if
(
error
)
sql_print_error
(
"Could not load error messages for %s"
,
lang
);
}
}
if
(
use_english
)
if
(
use_english
)
...
...
sql/log.cc
View file @
5ff66fb0
/* Copyright (c) 2000, 2018, Oracle and/or its affiliates.
/* Copyright (c) 2000, 2018, Oracle and/or its affiliates.
Copyright (c) 2009, 20
19, MariaDB Corporation
Copyright (c) 2009, 20
20, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
...
@@ -3264,7 +3264,7 @@ void MYSQL_BIN_LOG::cleanup()
...
@@ -3264,7 +3264,7 @@ void MYSQL_BIN_LOG::cleanup()
DBUG_ASSERT
(
!
binlog_xid_count_list
.
head
());
DBUG_ASSERT
(
!
binlog_xid_count_list
.
head
());
WSREP_XID_LIST_ENTRY
(
"MYSQL_BIN_LOG::cleanup(): Removing xid_list_entry "
WSREP_XID_LIST_ENTRY
(
"MYSQL_BIN_LOG::cleanup(): Removing xid_list_entry "
"for %s (%lu)"
,
b
);
"for %s (%lu)"
,
b
);
my_free
(
b
)
;
delete
b
;
}
}
mysql_mutex_destroy
(
&
LOCK_log
);
mysql_mutex_destroy
(
&
LOCK_log
);
...
@@ -3629,19 +3629,10 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
...
@@ -3629,19 +3629,10 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
know from where to start recovery.
know from where to start recovery.
*/
*/
size_t
off
=
dirname_length
(
log_file_name
);
size_t
off
=
dirname_length
(
log_file_name
);
size_t
len
=
strlen
(
log_file_name
)
-
off
;
uint
len
=
static_cast
<
uint
>
(
strlen
(
log_file_name
)
-
off
);
char
*
entry_mem
,
*
name_mem
;
new_xid_list_entry
=
new
xid_count_per_binlog
(
log_file_name
+
off
,
len
);
if
(
!
(
new_xid_list_entry
=
(
xid_count_per_binlog
*
)
if
(
!
new_xid_list_entry
)
my_multi_malloc
(
MYF
(
MY_WME
),
&
entry_mem
,
sizeof
(
xid_count_per_binlog
),
&
name_mem
,
len
,
NULL
)))
goto
err
;
goto
err
;
memcpy
(
name_mem
,
log_file_name
+
off
,
len
);
new_xid_list_entry
->
binlog_name
=
name_mem
;
new_xid_list_entry
->
binlog_name_len
=
(
int
)
len
;
new_xid_list_entry
->
xid_count
=
0
;
new_xid_list_entry
->
notify_count
=
0
;
/*
/*
Find the name for the Initial binlog checkpoint.
Find the name for the Initial binlog checkpoint.
...
@@ -3658,8 +3649,11 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
...
@@ -3658,8 +3649,11 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
mysql_mutex_unlock
(
&
LOCK_xid_list
);
mysql_mutex_unlock
(
&
LOCK_xid_list
);
if
(
!
b
)
if
(
!
b
)
b
=
new_xid_list_entry
;
b
=
new_xid_list_entry
;
strmake
(
buf
,
b
->
binlog_name
,
b
->
binlog_name_len
);
if
(
b
->
binlog_name
)
Binlog_checkpoint_log_event
ev
(
buf
,
(
uint
)
len
);
strmake
(
buf
,
b
->
binlog_name
,
b
->
binlog_name_len
);
else
goto
err
;
Binlog_checkpoint_log_event
ev
(
buf
,
len
);
DBUG_EXECUTE_IF
(
"crash_before_write_checkpoint_event"
,
DBUG_EXECUTE_IF
(
"crash_before_write_checkpoint_event"
,
flush_io_cache
(
&
log_file
);
flush_io_cache
(
&
log_file
);
mysql_file_sync
(
log_file
.
file
,
MYF
(
MY_WME
));
mysql_file_sync
(
log_file
.
file
,
MYF
(
MY_WME
));
...
@@ -3762,7 +3756,7 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
...
@@ -3762,7 +3756,7 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
{
{
WSREP_XID_LIST_ENTRY
(
"MYSQL_BIN_LOG::open(): Removing xid_list_entry for "
WSREP_XID_LIST_ENTRY
(
"MYSQL_BIN_LOG::open(): Removing xid_list_entry for "
"%s (%lu)"
,
b
);
"%s (%lu)"
,
b
);
my_free
(
binlog_xid_count_list
.
get
()
);
delete
binlog_xid_count_list
.
get
(
);
}
}
mysql_cond_broadcast
(
&
COND_xid_list
);
mysql_cond_broadcast
(
&
COND_xid_list
);
WSREP_XID_LIST_ENTRY
(
"MYSQL_BIN_LOG::open(): Adding new xid_list_entry for "
WSREP_XID_LIST_ENTRY
(
"MYSQL_BIN_LOG::open(): Adding new xid_list_entry for "
...
@@ -3812,7 +3806,7 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
...
@@ -3812,7 +3806,7 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
#endif
#endif
sql_print_error
(
fatal_log_error
,
name
,
tmp_errno
);
sql_print_error
(
fatal_log_error
,
name
,
tmp_errno
);
if
(
new_xid_list_entry
)
if
(
new_xid_list_entry
)
my_free
(
new_xid_list_entry
)
;
delete
new_xid_list_entry
;
if
(
file
>=
0
)
if
(
file
>=
0
)
mysql_file_close
(
file
,
MYF
(
0
));
mysql_file_close
(
file
,
MYF
(
0
));
close
(
LOG_CLOSE_INDEX
);
close
(
LOG_CLOSE_INDEX
);
...
@@ -4298,7 +4292,7 @@ bool MYSQL_BIN_LOG::reset_logs(THD *thd, bool create_new_log,
...
@@ -4298,7 +4292,7 @@ bool MYSQL_BIN_LOG::reset_logs(THD *thd, bool create_new_log,
DBUG_ASSERT
(
b
->
xid_count
==
0
);
DBUG_ASSERT
(
b
->
xid_count
==
0
);
WSREP_XID_LIST_ENTRY
(
"MYSQL_BIN_LOG::reset_logs(): Removing "
WSREP_XID_LIST_ENTRY
(
"MYSQL_BIN_LOG::reset_logs(): Removing "
"xid_list_entry for %s (%lu)"
,
b
);
"xid_list_entry for %s (%lu)"
,
b
);
my_free
(
binlog_xid_count_list
.
get
()
);
delete
binlog_xid_count_list
.
get
(
);
}
}
mysql_cond_broadcast
(
&
COND_xid_list
);
mysql_cond_broadcast
(
&
COND_xid_list
);
reset_master_pending
--
;
reset_master_pending
--
;
...
@@ -9833,7 +9827,7 @@ TC_LOG_BINLOG::mark_xid_done(ulong binlog_id, bool write_checkpoint)
...
@@ -9833,7 +9827,7 @@ TC_LOG_BINLOG::mark_xid_done(ulong binlog_id, bool write_checkpoint)
break
;
break
;
WSREP_XID_LIST_ENTRY
(
"TC_LOG_BINLOG::mark_xid_done(): Removing "
WSREP_XID_LIST_ENTRY
(
"TC_LOG_BINLOG::mark_xid_done(): Removing "
"xid_list_entry for %s (%lu)"
,
b
);
"xid_list_entry for %s (%lu)"
,
b
);
my_free
(
binlog_xid_count_list
.
get
()
);
delete
binlog_xid_count_list
.
get
(
);
}
}
mysql_mutex_unlock
(
&
LOCK_xid_list
);
mysql_mutex_unlock
(
&
LOCK_xid_list
);
...
...
sql/log.h
View file @
5ff66fb0
/* Copyright (c) 2005, 2016, Oracle and/or its affiliates.
/* Copyright (c) 2005, 2016, Oracle and/or its affiliates.
Copyright (c) 2009, 20
17
, MariaDB Corporation.
Copyright (c) 2009, 20
20
, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
...
@@ -600,7 +600,18 @@ class MYSQL_BIN_LOG: public TC_LOG, private MYSQL_LOG
...
@@ -600,7 +600,18 @@ class MYSQL_BIN_LOG: public TC_LOG, private MYSQL_LOG
long
notify_count
;
long
notify_count
;
/* For linking in requests to the binlog background thread. */
/* For linking in requests to the binlog background thread. */
xid_count_per_binlog
*
next_in_queue
;
xid_count_per_binlog
*
next_in_queue
;
xid_count_per_binlog
();
/* Give link error if constructor used. */
xid_count_per_binlog
(
char
*
log_file_name
,
uint
log_file_name_len
)
:
binlog_id
(
0
),
xid_count
(
0
),
notify_count
(
0
)
{
binlog_name_len
=
log_file_name_len
;
binlog_name
=
(
char
*
)
my_malloc
(
binlog_name_len
,
MYF
(
MY_ZEROFILL
));
if
(
binlog_name
)
memcpy
(
binlog_name
,
log_file_name
,
binlog_name_len
);
}
~
xid_count_per_binlog
()
{
my_free
(
binlog_name
);
}
};
};
I_List
<
xid_count_per_binlog
>
binlog_xid_count_list
;
I_List
<
xid_count_per_binlog
>
binlog_xid_count_list
;
mysql_mutex_t
LOCK_binlog_background_thread
;
mysql_mutex_t
LOCK_binlog_background_thread
;
...
...
storage/innobase/dict/dict0dict.cc
View file @
5ff66fb0
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
Copyright (c) 1996, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 1996, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2012, Facebook Inc.
Copyright (c) 2012, Facebook Inc.
Copyright (c) 2013, 20
19
, MariaDB Corporation.
Copyright (c) 2013, 20
20
, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
the terms of the GNU General Public License as published by the Free Software
...
@@ -523,7 +523,10 @@ dict_table_close(
...
@@ -523,7 +523,10 @@ dict_table_close(
mutex_exit
(
&
dict_sys
->
mutex
);
mutex_exit
(
&
dict_sys
->
mutex
);
if
(
drop_aborted
)
{
/* dict_table_try_drop_aborted() can generate undo logs.
So it should be avoided after shutdown of background
threads */
if
(
drop_aborted
&&
!
srv_undo_sources
)
{
dict_table_try_drop_aborted
(
NULL
,
table_id
,
0
);
dict_table_try_drop_aborted
(
NULL
,
table_id
,
0
);
}
}
}
}
...
...
storage/innobase/fil/fil0crypt.cc
View file @
5ff66fb0
/*****************************************************************************
/*****************************************************************************
Copyright (C) 2013, 2015, Google Inc. All Rights Reserved.
Copyright (C) 2013, 2015, Google Inc. All Rights Reserved.
Copyright (c) 2014, 20
19
, MariaDB Corporation.
Copyright (c) 2014, 20
20
, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
the terms of the GNU General Public License as published by the Free Software
...
@@ -654,51 +654,10 @@ fil_space_encrypt(
...
@@ -654,51 +654,10 @@ fil_space_encrypt(
return
(
src_frame
);
return
(
src_frame
);
}
}
fil_space_crypt_t
*
crypt_data
=
space
->
crypt_data
;
const
page_size_t
page_size
(
space
->
flags
);
ut_ad
(
space
->
pending_io
());
ut_ad
(
space
->
pending_io
());
byte
*
tmp
=
fil_encrypt_buf
(
crypt_data
,
space
->
id
,
offset
,
lsn
,
return
fil_encrypt_buf
(
space
->
crypt_data
,
space
->
id
,
offset
,
lsn
,
src_frame
,
page_size
,
dst_frame
);
src_frame
,
page_size_t
(
space
->
flags
),
dst_frame
);
#ifdef UNIV_DEBUG
if
(
tmp
)
{
/* Verify that encrypted buffer is not corrupted */
dberr_t
err
=
DB_SUCCESS
;
byte
*
src
=
src_frame
;
bool
page_compressed_encrypted
=
(
mach_read_from_2
(
tmp
+
FIL_PAGE_TYPE
)
==
FIL_PAGE_PAGE_COMPRESSED_ENCRYPTED
);
byte
uncomp_mem
[
UNIV_PAGE_SIZE_MAX
];
byte
tmp_mem
[
UNIV_PAGE_SIZE_MAX
];
if
(
page_compressed_encrypted
)
{
memcpy
(
uncomp_mem
,
src
,
srv_page_size
);
ulint
unzipped1
=
fil_page_decompress
(
tmp_mem
,
uncomp_mem
);
ut_ad
(
unzipped1
);
if
(
unzipped1
!=
srv_page_size
)
{
src
=
uncomp_mem
;
}
}
ut_ad
(
!
buf_page_is_corrupted
(
true
,
src
,
page_size
,
space
));
ut_ad
(
fil_space_decrypt
(
crypt_data
,
tmp_mem
,
page_size
,
tmp
,
&
err
));
ut_ad
(
err
==
DB_SUCCESS
);
/* Need to decompress the page if it was also compressed */
if
(
page_compressed_encrypted
)
{
byte
buf
[
UNIV_PAGE_SIZE_MAX
];
memcpy
(
buf
,
tmp_mem
,
srv_page_size
);
ulint
unzipped2
=
fil_page_decompress
(
tmp_mem
,
buf
);
ut_ad
(
unzipped2
);
}
memcpy
(
tmp_mem
+
FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION
,
src
+
FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION
,
8
);
ut_ad
(
!
memcmp
(
src
,
tmp_mem
,
page_size
.
physical
()));
}
#endif
/* UNIV_DEBUG */
return
tmp
;
}
}
/** Decrypt a page.
/** Decrypt a page.
...
...
storage/innobase/fts/fts0opt.cc
View file @
5ff66fb0
...
@@ -2645,8 +2645,6 @@ fts_optimize_request_sync_table(
...
@@ -2645,8 +2645,6 @@ fts_optimize_request_sync_table(
ib_wqueue_add
(
fts_optimize_wq
,
msg
,
msg
->
heap
,
true
);
ib_wqueue_add
(
fts_optimize_wq
,
msg
,
msg
->
heap
,
true
);
table
->
fts
->
in_queue
=
true
;
mutex_exit
(
&
fts_optimize_wq
->
mutex
);
mutex_exit
(
&
fts_optimize_wq
->
mutex
);
}
}
...
...
storage/innobase/row/row0mysql.cc
View file @
5ff66fb0
...
@@ -3842,6 +3842,11 @@ row_drop_table_for_mysql(
...
@@ -3842,6 +3842,11 @@ row_drop_table_for_mysql(
trx_commit_for_mysql
(
trx
);
trx_commit_for_mysql
(
trx
);
}
}
/* Add the table to fts queue if drop table fails */
if
(
err
!=
DB_SUCCESS
&&
table
->
fts
)
{
fts_optimize_add_table
(
table
);
}
row_mysql_unlock_data_dictionary
(
trx
);
row_mysql_unlock_data_dictionary
(
trx
);
}
}
...
...
storage/tokudb/CMakeLists.txt
View file @
5ff66fb0
...
@@ -168,3 +168,5 @@ TARGET_LINK_LIBRARIES(tokudb tokufractaltree_static tokuportability_static
...
@@ -168,3 +168,5 @@ TARGET_LINK_LIBRARIES(tokudb tokufractaltree_static tokuportability_static
SET
(
CMAKE_MODULE_LINKER_FLAGS_RELEASE
"
${
CMAKE_MODULE_LINKER_FLAGS_RELEASE
}
-flto -fuse-linker-plugin"
)
SET
(
CMAKE_MODULE_LINKER_FLAGS_RELEASE
"
${
CMAKE_MODULE_LINKER_FLAGS_RELEASE
}
-flto -fuse-linker-plugin"
)
SET
(
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
"
${
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
}
-flto -fuse-linker-plugin"
)
SET
(
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
"
${
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
}
-flto -fuse-linker-plugin"
)
ADD_SUBDIRECTORY
(
man
)
storage/tokudb/man/CMakeLists.txt
0 → 100644
View file @
5ff66fb0
SET
(
MAN1_TOKUDB tokuftdump.1 tokuft_logprint.1
)
INSTALL
(
FILES
${
MAN1_TOKUDB
}
DESTINATION
${
INSTALL_MANDIR
}
/man1 COMPONENT tokudb-engine
)
man/tokuft_logprint.1
→
storage/tokudb/
man/tokuft_logprint.1
View file @
5ff66fb0
File moved
man/tokuftdump.1
→
storage/tokudb/
man/tokuftdump.1
View file @
5ff66fb0
File moved
support-files/CMakeLists.txt
View file @
5ff66fb0
...
@@ -114,21 +114,6 @@ IF(UNIX)
...
@@ -114,21 +114,6 @@ IF(UNIX)
${
CMAKE_CURRENT_BINARY_DIR
}
/mariadb.service
${
CMAKE_CURRENT_BINARY_DIR
}
/mariadb.service
DESTINATION
${
inst_location
}
/systemd COMPONENT SupportFiles
)
DESTINATION
${
inst_location
}
/systemd COMPONENT SupportFiles
)
IF
(
INSTALL_SYSTEMD_SYSUSERSDIR
)
CONFIGURE_FILE
(
sysusers.conf.in
${
CMAKE_CURRENT_BINARY_DIR
}
/sysusers.conf @ONLY
)
INSTALL
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/sysusers.conf
DESTINATION
${
INSTALL_SYSTEMD_SYSUSERSDIR
}
COMPONENT Server
)
ENDIF
()
IF
(
INSTALL_SYSTEMD_TMPFILESDIR
)
get_filename_component
(
MYSQL_UNIX_DIR
${
MYSQL_UNIX_ADDR
}
DIRECTORY
)
CONFIGURE_FILE
(
tmpfiles.conf.in
${
CMAKE_CURRENT_BINARY_DIR
}
/tmpfiles.conf @ONLY
)
INSTALL
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/tmpfiles.conf
DESTINATION
${
INSTALL_SYSTEMD_TMPFILESDIR
}
COMPONENT Server
)
ENDIF
()
# @ in directory name broken between CMake version 2.8.12.2 and 3.3
# @ in directory name broken between CMake version 2.8.12.2 and 3.3
# http://public.kitware.com/Bug/view.php?id=14782
# http://public.kitware.com/Bug/view.php?id=14782
IF
(
NOT CMAKE_VERSION VERSION_LESS 3.3.0 OR NOT RPM
)
IF
(
NOT CMAKE_VERSION VERSION_LESS 3.3.0 OR NOT RPM
)
...
@@ -155,6 +140,26 @@ IF(UNIX)
...
@@ -155,6 +140,26 @@ IF(UNIX)
ENDIF
()
ENDIF
()
ENDIF
()
ENDIF
()
# Allow installing sysusers and tmpusers without requiring SYSTEMD on the
# system. This is useful for distributions running other init systems to
# parse these files and create appropriate users & tmpfiles.
IF
((
HAVE_SYSTEMD OR INSTALL_SYSTEMD_SYSUSERS
)
AND INSTALL_SYSTEMD_SYSUSERSDIR
)
CONFIGURE_FILE
(
sysusers.conf.in
${
CMAKE_CURRENT_BINARY_DIR
}
/sysusers.conf @ONLY
)
INSTALL
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/sysusers.conf
DESTINATION
${
INSTALL_SYSTEMD_SYSUSERSDIR
}
RENAME mariadb.conf COMPONENT Server
)
ENDIF
()
IF
((
HAVE_SYSTEMD OR INSTALL_SYSTEMD_TMPUSERS
)
AND INSTALL_SYSTEMD_TMPFILESDIR
)
get_filename_component
(
MYSQL_UNIX_DIR
${
MYSQL_UNIX_ADDR
}
DIRECTORY
)
CONFIGURE_FILE
(
tmpfiles.conf.in
${
CMAKE_CURRENT_BINARY_DIR
}
/tmpfiles.conf @ONLY
)
INSTALL
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/tmpfiles.conf
DESTINATION
${
INSTALL_SYSTEMD_TMPFILESDIR
}
RENAME mariadb.conf COMPONENT Server
)
ENDIF
()
IF
(
INSTALL_SYSCONFDIR
)
IF
(
INSTALL_SYSCONFDIR
)
INSTALL
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/mysql-log-rotate DESTINATION
${
INSTALL_SYSCONFDIR
}
/logrotate.d
INSTALL
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/mysql-log-rotate DESTINATION
${
INSTALL_SYSCONFDIR
}
/logrotate.d
RENAME mysql COMPONENT SupportFiles
)
RENAME mysql COMPONENT SupportFiles
)
...
...
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