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
5c76e1e6
Commit
5c76e1e6
authored
Apr 15, 2021
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.5 into 10.6
parents
a3e3225c
3f8df011
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
49 additions
and
35 deletions
+49
-35
CMakeLists.txt
CMakeLists.txt
+2
-2
configure.cmake
configure.cmake
+5
-4
dbug/CMakeLists.txt
dbug/CMakeLists.txt
+1
-1
debian/rules
debian/rules
+1
-0
debian/salsa-ci.yml
debian/salsa-ci.yml
+34
-0
extra/CMakeLists.txt
extra/CMakeLists.txt
+1
-1
scripts/CMakeLists.txt
scripts/CMakeLists.txt
+2
-2
sql/CMakeLists.txt
sql/CMakeLists.txt
+2
-2
storage/innobase/buf/buf0flu.cc
storage/innobase/buf/buf0flu.cc
+0
-22
storage/mroonga/vendor/groonga/CMakeLists.txt
storage/mroonga/vendor/groonga/CMakeLists.txt
+1
-1
No files found.
CMakeLists.txt
View file @
5c76e1e6
...
...
@@ -392,7 +392,7 @@ CHECK_PCRE()
ADD_SUBDIRECTORY
(
tpool
)
CHECK_SYSTEMD
()
IF
(
CMAKE_CROSSCOMPILING
)
IF
(
CMAKE_CROSSCOMPILING
AND NOT DEFINED CMAKE_CROSSCOMPILING_EMULATOR
)
SET
(
IMPORT_EXECUTABLES
"IMPORTFILE-NOTFOUND"
CACHE FILEPATH
"Path to import_executables.cmake from a native build"
)
INCLUDE
(
${
IMPORT_EXECUTABLES
}
)
ENDIF
()
...
...
@@ -473,7 +473,7 @@ ADD_SUBDIRECTORY(scripts)
ADD_SUBDIRECTORY
(
support-files
)
ADD_SUBDIRECTORY
(
extra/aws_sdk
)
IF
(
NOT CMAKE_CROSSCOMPILING
)
IF
(
NOT CMAKE_CROSSCOMPILING
OR DEFINED CMAKE_CROSSCOMPILING_EMULATOR
)
SET
(
EXPORTED comp_err comp_sql factorial
)
IF
(
NOT WITHOUT_SERVER
)
SET
(
EXPORTED
${
EXPORTED
}
gen_lex_hash gen_lex_token
)
...
...
configure.cmake
View file @
5c76e1e6
...
...
@@ -134,6 +134,7 @@ IF(UNIX)
IF
(
NOT LIBRT
)
MY_SEARCH_LIBS
(
clock_gettime rt LIBRT
)
ENDIF
()
set
(
THREADS_PREFER_PTHREAD_FLAG ON
)
FIND_PACKAGE
(
Threads
)
SET
(
CMAKE_REQUIRED_LIBRARIES
...
...
@@ -670,10 +671,10 @@ int main()
"
HAVE_PTHREAD_YIELD_ZERO_ARG
)
IF
(
NOT STACK_DIRECTION
)
IF
(
CMAKE_CROSSCOMPILING
)
MESSAGE
(
FATAL_ERROR
"STACK_DIRECTION is not defined. Please specify -DSTACK_DIRECTION=1 "
"or -DSTACK_DIRECTION=-1 when calling cmake."
)
IF
(
CMAKE_CROSSCOMPILING
AND NOT DEFINED CMAKE_CROSSCOMPILING_EMULATOR
)
MESSAGE
(
FATAL_ERROR
"STACK_DIRECTION is not defined. Please specify -DSTACK_DIRECTION=1 "
"or -DSTACK_DIRECTION=-1 when calling cmake."
)
ELSE
()
TRY_RUN
(
STACKDIR_RUN_RESULT STACKDIR_COMPILE_RESULT
${
CMAKE_BINARY_DIR
}
...
...
dbug/CMakeLists.txt
View file @
5c76e1e6
...
...
@@ -25,7 +25,7 @@ MAYBE_DISABLE_IPO(dbug)
ADD_EXECUTABLE
(
tests tests.c
)
TARGET_LINK_LIBRARIES
(
tests dbug
)
IF
(
NOT CMAKE_CROSSCOMPILING
)
IF
(
NOT CMAKE_CROSSCOMPILING
OR DEFINED CMAKE_CROSSCOMPILING_EMULATOR
)
ADD_EXECUTABLE
(
factorial my_main.c factorial.c
)
TARGET_LINK_LIBRARIES
(
factorial dbug
)
ENDIF
()
...
...
debian/rules
View file @
5c76e1e6
...
...
@@ -104,6 +104,7 @@ endif
-DSYSTEM_TYPE="debian-$(DEB_HOST_GNU_SYSTEM)" \
-DCMAKE_SYSTEM_PROCESSOR=$(DEB_HOST_ARCH) \
-DBUILD_CONFIG=mysql_release \
-DCONC_DEFAULT_CHARSET=utf8mb4 \
-DPLUGIN_AWS_KEY_MANAGEMENT=NO \
-DPLUGIN_COLUMNSTORE=NO \
-DIGNORE_AIO_CHECK=YES \
...
...
debian/salsa-ci.yml
View file @
5c76e1e6
...
...
@@ -175,6 +175,40 @@ blhc:
-
pkg-config --cflags --libs libmariadb
-
pkg-config --cflags --libs mariadb
-
apt-get install -y --no-install-recommends g++
-
|
# Build a test binary that depends on libmysqlclient
cat > b933063.cpp <<EOF
#include <iostream>
#include <mysql/mysql.h>
#include <stdexcept>
int main()
{
MYSQL h;
if (!mysql_init(&h)
|| mysql_options(&h, MYSQL_READ_DEFAULT_GROUP, "")
// || mysql_options(&h, MYSQL_SET_CHARSET_NAME, "utf8mb4")
|| !mysql_real_connect(&h, "", "", NULL, "", 0, NULL, 0))
throw std::runtime_error(mysql_error(&h));
std::string q = "show variables like '%char%'";
if (mysql_real_query(&h, q.data(), q.size()))
throw std::runtime_error(mysql_error(&h));
MYSQL_RES* result = mysql_store_result(&h);
if (!result && mysql_errno(&h))
throw std::runtime_error(mysql_error(&h));
while (MYSQL_ROW row = mysql_fetch_row(result))
{
std::cout << row[0] << ": " << row[1] << "\n";
}
return 0;
}
EOF
apt-get install -y ./*.deb # Server must be installed for client to connect
echo "Testing -l mysqlclient"
g++ b933063.cpp -l mysqlclient && ./a.out | tee result
if grep --quiet latin result; then echo "ERROR: Charset latin found!"; exit 1; fi
echo "Testing -l mariadbclient"
g++ b933063.cpp -l mariadbclient && ./a.out | tee result
if grep --quiet latin result; then echo "ERROR: Charset latin found!"; exit 1; fi
.test-install-all-libs
:
&test-install-all-libs
-
apt-get install -y ./libmariadb3_*.deb ./libmariadb-dev_*.deb ./libmariadb-dev-compat_*.deb ./libmariadbd19_*.deb ./libmariadbd-dev_*.deb ./mariadb-common_*.deb
...
...
extra/CMakeLists.txt
View file @
5c76e1e6
...
...
@@ -18,7 +18,7 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include ${ZLIB_INCLUDE_DIR})
# Default install component for the files is Server here
SET
(
MYSQL_INSTALL_COMPONENT Server
)
IF
(
NOT CMAKE_CROSSCOMPILING
)
IF
(
NOT CMAKE_CROSSCOMPILING
OR DEFINED CMAKE_CROSSCOMPILING_EMULATOR
)
ADD_EXECUTABLE
(
comp_err comp_err.c
)
TARGET_LINK_LIBRARIES
(
comp_err mysys
)
ENDIF
()
...
...
scripts/CMakeLists.txt
View file @
5c76e1e6
...
...
@@ -28,14 +28,14 @@ MACRO(INSTALL_LINK old new destination component)
)
ENDMACRO
()
IF
(
NOT CMAKE_CROSSCOMPILING
)
IF
(
NOT CMAKE_CROSSCOMPILING
OR DEFINED CMAKE_CROSSCOMPILING_EMULATOR
)
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/include
)
ADD_EXECUTABLE
(
comp_sql comp_sql.c ../sql/sql_bootstrap.cc
)
TARGET_LINK_LIBRARIES
(
comp_sql
)
ENDIF
()
# Build mysql_fix_privilege_tables.sql (concatenate 3 sql scripts)
IF
(
NOT WIN32 OR
CMAKE_CROSSCOMPILING
)
IF
(
NOT WIN32
OR
(
CMAKE_CROSSCOMPILING AND NOT DEFINED CMAKE_CROSSCOMPILING_EMULATOR
)
)
FIND_PROGRAM
(
CAT_EXECUTABLE cat DOC
"path to the executable"
)
MARK_AS_ADVANCED
(
CAT_EXECUTABLE
)
ENDIF
()
...
...
sql/CMakeLists.txt
View file @
5c76e1e6
...
...
@@ -355,7 +355,7 @@ ELSE()
COMPILE_FLAGS
"-p ORA"
)
ENDIF
()
IF
(
NOT CMAKE_CROSSCOMPILING
)
IF
(
NOT CMAKE_CROSSCOMPILING
OR DEFINED CMAKE_CROSSCOMPILING_EMULATOR
)
ADD_EXECUTABLE
(
gen_lex_token gen_lex_token.cc
${
CMAKE_CURRENT_BINARY_DIR
}
/sql_yacc.hh
)
ADD_EXECUTABLE
(
gen_lex_hash gen_lex_hash.cc
)
...
...
@@ -405,7 +405,7 @@ ADD_CUSTOM_TARGET(distclean
)
# Install initial database (default on windows, optional target elsewhere)
IF
(
TARGET mariadbd AND
NOT CMAKE_CROSSCOMPILING
)
IF
(
TARGET mariadbd
AND
(
NOT CMAKE_CROSSCOMPILING OR DEFINED CMAKE_CROSSCOMPILING_EMULATOR
)
)
IF
(
GENERATOR_IS_MULTI_CONFIG
)
SET
(
CONFIG_PARAM -DCONFIG=
${
CMAKE_CFG_INTDIR
}
)
ENDIF
()
...
...
storage/innobase/buf/buf0flu.cc
View file @
5c76e1e6
...
...
@@ -40,13 +40,6 @@ Created 11/11/1995 Heikki Tuuri
#include "log0crypt.h"
#include "srv0mon.h"
#include "fil0pagecompress.h"
#ifdef UNIV_LINUX
/* include defs for CPU time priority settings */
#include <unistd.h>
#include <sys/syscall.h>
#include <sys/time.h>
#include <sys/resource.h>
#endif
/* UNIV_LINUX */
#ifdef HAVE_LZO
# include "lzo/lzo1x.h"
#elif defined HAVE_SNAPPY
...
...
@@ -2038,21 +2031,6 @@ static void buf_flush_page_cleaner()
ut_ad
(
!
srv_read_only_mode
);
ut_ad
(
buf_page_cleaner_is_active
);
#ifdef UNIV_DEBUG_THREAD_CREATION
ib
::
info
()
<<
"page_cleaner thread running, id "
<<
os_thread_get_curr_id
();
#endif
/* UNIV_DEBUG_THREAD_CREATION */
#ifdef UNIV_LINUX
/* linux might be able to set different setting for each thread.
worth to try to set high priority for the page cleaner thread */
const
pid_t
tid
=
static_cast
<
pid_t
>
(
syscall
(
SYS_gettid
));
setpriority
(
PRIO_PROCESS
,
tid
,
-
20
);
if
(
getpriority
(
PRIO_PROCESS
,
tid
)
!=
-
20
)
ib
::
info
()
<<
"If the mysqld execution user is authorized,"
" page cleaner thread priority can be changed."
" See the man page of setpriority()."
;
#endif
/* UNIV_LINUX */
ulint
last_pages
=
0
;
timespec
abstime
;
set_timespec
(
abstime
,
1
);
...
...
storage/mroonga/vendor/groonga/CMakeLists.txt
View file @
5c76e1e6
...
...
@@ -405,7 +405,7 @@ if(NOT ${GRN_WITH_MECAB} STREQUAL "no")
set
(
MECAB_LIBRARIES libmecab
)
else
()
set
(
GRN_MECAB_CONFIG
"mecab-config"
CACHE FILEPATH
"mecab-config path"
)
if
(
NOT CMAKE_CROSSCOMPILING
)
if
(
NOT CMAKE_CROSSCOMPILING
OR DEFINED CMAKE_CROSSCOMPILING_EMULATOR
)
find_program
(
GRN_MECAB_CONFIG_ABSOLUTE_PATH
"
${
GRN_MECAB_CONFIG
}
"
)
endif
()
if
(
EXISTS
"
${
GRN_MECAB_CONFIG_ABSOLUTE_PATH
}
"
)
...
...
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