Sergei Golubchik
2f368bb967
fix RHEL8 "ambiguous python shebang" build failures
2019-01-03 00:23:06 +01:00
Sergei Golubchik
67240858b2
Merge branch '10.1' into 10.2
2018-12-30 18:30:29 +01:00
Sergei Golubchik
aeefd26ecb
Merge branch '10.0' into 10.1
2018-12-29 23:44:45 +01:00
Sergei Golubchik
8634f7e528
Merge branch '5.5' into 10.0
2018-12-20 09:15:01 +01:00
Sergei Golubchik
cb4c2a98b5
always link C/C with external (to C/C) zlib
...
it'll be either system zlib.so or bundled with the server (but still
external to C/C) zlib.a
2018-12-20 08:06:55 +01:00
Sergei Golubchik
65525550ab
Don't default to bundled zlib
...
This reverts part of c54271723c
2018-12-17 21:47:14 +01:00
Vladislav Vaintroub
3f10cbf3e4
pipe and shared memory protocol should be statically compiled into C/C
2018-11-12 11:46:13 +01:00
Marko Mäkelä
32062cc61c
Merge 10.1 into 10.2
2018-11-06 08:41:48 +02:00
Sergei Golubchik
a6e0000494
Merge branch '10.0' into 10.1
2018-10-31 10:53:22 +01:00
Sergei Golubchik
09e97299ba
Merge branch '5.5' into 10.0
2018-10-31 00:25:26 +01:00
Sergei Golubchik
31f1fe223e
don't try to build with OpenSSL 1.1+
2018-10-30 22:42:22 +01:00
Sergei Golubchik
44f6f44593
Merge branch '10.0' into 10.1
2018-10-30 15:10:01 +01:00
Sergei Golubchik
8772824ce7
Restore auto-switch to bundled ssl if WITH_SSL=yes
...
if -DWITH_SSL=yes and system ssl cannot be used,
bundled ssl should be auto-selected.
That's how it worked in 10.0, and it was unintentionally broken in 10.1.
2018-10-29 23:21:58 +01:00
Sergei Golubchik
d5f564a996
rpm fixes: more %ignore'd files
2018-10-28 12:42:06 +01:00
Sergei Golubchik
37ab7e4596
Merge branch '5.5' into 10.0
2018-10-27 20:46:38 +02:00
Sergei Golubchik
f9e5195b40
Merge branch 'mysql/5.5' into 5.5
2018-10-23 15:59:24 +02:00
Vladislav Vaintroub
acf8fc1ff8
Fix cmake warning
...
CMP0075 Include file check macros honor CMAKE_REQUIRED_LIBRARIES
2018-10-10 07:36:18 +01:00
Vladislav Vaintroub
f67e050430
Update libmariadb
2018-10-03 14:29:16 +01:00
Sergei Golubchik
9905949b41
cmake: fix usage of GET_TARGET_PROPERTY
...
and followup fixes
2018-09-22 00:22:09 +02:00
Sergei Golubchik
61a6f4bd96
MDEV-14560 Extra engines enabled through additional config are not loaded on first installation
...
Use RedHat-recommended /var/lib/rpm-state/mariadb/ for restart flag.
This also fixes SUSE where /var/lib/rpm-state doesn't necessarily exist.
2018-09-22 00:20:25 +02:00
Sergei Golubchik
21d157abaa
MDEV-14560 Extra engines enabled through additional config are not loaded on first installation
...
RPM solution:
Make all server plugins to restart the server when installed.
To avoid multiple server restarts, do it only once in posttrans scriptlet.
Add support for CPACK_RPM_<component>_POST_TRANS_SCRIPT_FILE
2018-09-21 13:31:37 +02:00
Sergei Golubchik
5c83305c4c
RPM: generate per-plugin.cnf files where git will ignore them
2018-09-21 13:31:37 +02:00
Vladislav Vaintroub
f0ee8496d2
MDEV-15088 Lighter version of Windows Zip distributions
...
Add new target win_package, that produces
a) light ZIP (no test suite, no sql-bench, no debugsymbols)
b) debug symbols ZIP
2018-09-14 20:54:54 +01:00
Marko Mäkelä
ef3070e997
Merge 10.1 into 10.2
2018-08-02 08:19:57 +03:00
Oleksandr Byelkin
cb5952b506
Merge branch '10.0' into bb-10.1-merge-sanja
2018-07-25 22:24:40 +02:00
Oleksandr Byelkin
0896d7ebc3
Merge branch '10.0' into bb-10.1-merge
2018-07-19 12:55:54 +02:00
Sergei Golubchik
33eccb5776
MDEV-11790 WITHOUT_SERVER installs mysqld_safe_helper
...
Don't install server files if WITHOUT_SERVER is specified.
"Server files" are defined as files going into the MariaDB-Server RPM,
that is files in the components Server, ManPagesServer, Server_Scripts,
IniFiles, SuportFiles, and Readme.
2018-07-19 11:35:38 +02:00
Tor Didriksen
8a7db4c320
Bug#28200422 USE CTAGS RATHER THAN ETAGS FOR GENERATING TAGS FILE
...
Switch to Exuberant Ctags when generating TAGS, since it is much
better at parsing modern C++
Change-Id: I9652012708df7e7edf93161097a547f60fb0cf79
(cherry picked from commit 125b2804fbbb8662632f761f39aeef0a7f9cebb3)
2018-07-19 07:42:48 +02:00
Aditya A
c54271723c
Bug #26275510 BUNDLED ZLIB DOESN'T INCLUDE FIXES FOR SOME VULNERABILITIES
...
Upgrading the zlib lib to 1.2.11
2018-07-09 17:25:49 +05:30
Vladislav Vaintroub
0897a25c0f
MDEV-16596 : Windows - redo log does not work on native 4K sector disks.
...
Disks with native 4K sectors need 4K alignment and size for unbuffered IO
(i.e for files opened with FILE_FLAG_NO_BUFFERING)
Innodb opens redo log with FILE_FLAG_NO_BUFFERING, however it always does
512byte IOs. Thus, the IO on 4K native sectors will fail, rendering
Innodb non-functional.
The fix is to check whether OS_FILE_LOG_BLOCK_SIZE is multiple of logical
sector size, and if it is not, reopen the redo log without
FILE_FLAG_NO_BUFFERING flag.
2018-07-02 15:02:31 +01:00
Vladislav Vaintroub
c612a1e77c
MDEV-16596 : Windows - redo log does not work on native 4K sector disks.
...
Disks with native 4K sectors need 4K alignment and size for unbuffered IO
(i.e for files opened with FILE_FLAG_NO_BUFFERING)
Innodb opens redo log with FILE_FLAG_NO_BUFFERING, however it always does
512byte IOs. Thus, the IO on 4K native sectors will fail, rendering
Innodb non-functional.
The fix is to check whether OS_FILE_LOG_BLOCK_SIZE is multiple of logical
sector size, and if it is not, reopen the redo log without
FILE_FLAG_NO_BUFFERING flag.
2018-06-30 11:04:51 +01:00
Sergei Petrunia
f46acd4a3a
Adopt Debian's fix-FTBFS-on-GNU-Hurd.patch.
...
- Took the original patch by Ondrej Sury;
- Applied a fix for a known problem in the patch:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882062
- Fixed a few other issues
2018-06-29 14:00:00 +03:00
Sergei Golubchik
ffb96be9e7
fix debian packaging for tokudb
2018-06-24 15:18:36 +02:00
Sergei Golubchik
c09a8b5b36
Merge branch '10.0' into 10.1
2018-06-21 08:34:35 +02:00
Sergei Golubchik
d8192f5495
Merge branch '5.5' into 10.0
2018-06-21 00:44:10 +02:00
Sergei Golubchik
0a9d78f51d
Revert "MDEV-16075: Workaround to run MTR test suite for make test"
...
This reverts commit d39629f01e
.
Because running mtr for many hours with no output whatsoever
is not really what we should do.
And in 5.5 `make test` just works anyway, nothing to fix here.
2018-06-20 23:27:23 +02:00
Vicențiu Ciorbaru
aa59ecec89
Merge branch '10.0' into 10.1
2018-06-12 18:55:27 +03:00
Vicențiu Ciorbaru
3ead951180
Merge branch '5.5' into 10.0
2018-06-10 17:16:27 +03:00
Teodor Mircea Ionita
d39629f01e
MDEV-16075: Workaround to run MTR test suite for make test
...
Assign all tests added via MY_ADD_TEST to a bogus default_ignore target,
so that they are not ran by default when doing bare make test. Add default
test named MTR that calls mysql-test-run suite, which is now the single
test run by make test.
In consequence, modified unit/suite.pm to exclude the MTR test and run the
real ctests flagged for default_ignore target, thus no circular
loop.
2018-06-10 10:14:31 +03:00
Daniel Black
402c7584a8
MDEV-13785: move defination HAVE_LARGE_PAGES -> HAVE_LINUX_LARGE_PAGES
...
HAVE_LARGE_PAGES was always Linux but now there is
HAVE_SOLARIS_LARGE_PAGES in the code base. Innodb was using HAVE_LINUX_LARGE_PAGES
so keep this consistent everywhere.
Test plan:
$ grep Hugepagesize: /proc/meminfo
Hugepagesize: 2048 kB
$ sudo sysctl vm.nr_hugepages=1024
vm.nr_hugepages = 1024
$ sudo sysctl kernel.shmmax=$(( 2 * 1024 *1024 * 1024 ))
kernel.shmmax = 2147483648
No errors in ouput:
$ sql/mysqld --skip-networking --datadir=/tmp/datadir --log-bin=/tmp/datadir/mysqlbin --socket /tmp/s.sock --lc-messages-dir=${PWD}/sql/share --verbose --large-pages=1
2018-03-23 12:51:18 139697428129984 [Note] sql/mysqld (mysqld 10.2.14-MariaDB-log) starting as process 25406 ...
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Uses event mutexes
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Compressed tables use zlib 1.2.11
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Using Linux native AIO
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Number of pools: 1
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Using SSE2 crc32 instructions
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Completed initialization of buffer pool
2018-03-23 12:51:18 139696883590912 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Highest supported file format is Barracuda.
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: 128 out of 128 rollback segments are active.
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Creating shared tablespace for temporary tables
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2018-03-23 12:51:18 139697428129984 [Note] InnoDB: 5.7.21 started; log sequence number 1620099
2018-03-23 12:51:18 139696713733888 [Note] InnoDB: Loading buffer pool(s) from /tmp/datadir/ib_buffer_pool
2018-03-23 12:51:18 139696713733888 [Note] InnoDB: Buffer pool(s) load completed at 180323 12:51:18
2018-03-23 12:51:18 139697428129984 [Note] Plugin 'FEEDBACK' is disabled.
2018-03-23 12:51:18 139697428129984 [Note] Reading of all Master_info entries succeded
2018-03-23 12:51:18 139697428129984 [Note] Added new Master_info '' to hash table
2018-03-23 12:51:18 139697428129984 [Note] sql/mysqld: ready for connections.
Version: '10.2.14-MariaDB-log' socket: '/tmp/s.sock' port: 0 Source distribution
$ grep -i huge /proc/25406/smaps | grep -v ' 0 kB'
Private_Hugetlb: 8192 kB
Private_Hugetlb: 2048 kB
$ grep huge /proc/25406/numa_maps
7f0d74400000 default file=/SYSV00000000\040(deleted) huge
7f0dbd200000 default file=/SYSV00000000\040(deleted) huge dirty=4 N0=4 kernelpagesize_kB=2048
7f0dc5600000 default file=/SYSV00000000\040(deleted) huge
7f0dd1200000 default file=/SYSV00000000\040(deleted) huge dirty=1 N0=1 kernelpagesize_kB=2048
$ grep Huge /proc/meminfo
AnonHugePages: 0 kB
ShmemHugePages: 0 kB
HugePages_Total: 940
HugePages_Free: 935
HugePages_Rsvd: 177
HugePages_Surp: 0
Hugepagesize: 2048 kB
Ran again with --memlock
(note needs ulimit -l > size)
$ grep Huge /proc/meminfo
AnonHugePages: 0 kB
ShmemHugePages: 0 kB
HugePages_Total: 940
HugePages_Free: 758
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
$ grep huge /proc/26020/numa_maps
7fe870400000 default file=/SYSV00000000\040(deleted) huge dirty=62 N0=62 kernelpagesize_kB=2048
7fe8b3a00000 default file=/SYSV00000000\040(deleted) huge dirty=66 N0=66 kernelpagesize_kB=2048
7fe8bd600000 default file=/SYSV00000000\040(deleted) huge dirty=53 N0=53 kernelpagesize_kB=2048
7fe8c8400000 default file=/SYSV00000000\040(deleted) huge dirty=1 N0=1 kernelpagesize_kB=2048
$ grep -i huge /proc/26020/smaps | grep -v ' 0 kB'
Private_Hugetlb: 126976 kB
Private_Hugetlb: 135168 kB
Private_Hugetlb: 108544 kB
Private_Hugetlb: 2048 kB
2018-03-29 18:55:18 +04:00
Vicențiu Ciorbaru
82aeb6b596
Merge branch '10.1' into 10.2
2018-03-21 10:36:49 +02:00
Vicențiu Ciorbaru
24b353162f
Merge branch '10.0-galera' into 10.1
2018-03-19 15:21:01 +02:00
Teemu Ollakka
7bd95307f2
Bump wsrep patch version to 25.23
2018-02-25 21:24:12 +02:00
Vladislav Vaintroub
24462cece4
Disable noisy warning in old compiler (VS2015)
2018-02-14 19:13:08 +00:00
Vladislav Vaintroub
1a10b261d0
Add some hints for finding bison on its usual locations on Windows.
2018-02-14 17:01:07 +00:00
Vladislav Vaintroub
2dd8a732f3
Windows, compiling - disable pkg_config
...
pkg_config usually comes with Strawberry perl, and tends to find packages
that might work in mingw compilation, but not with MSVC.
Thus disable PKG_CONFIG, otherwise any FIND_PACKAGE() that is using PkgConfig
can find something (like LibXml2 from connect), can potentially find something
that is not going to compile.
2018-02-14 17:00:13 +00:00
Sergei Golubchik
4771ae4b22
Merge branch 'github/10.1' into 10.2
2018-02-06 14:50:50 +01:00
Sergei Golubchik
0c25e58db6
correctly detect unsupported compiler flags
...
in gcc `-Wno-unsupported-something` will not be an error or even a warning,
so cmake will think the flag is supported. But if there's any other
warning during compilation, for any reason, unknown option will
be a warning too. Or an error when -Werror, even if that "other warning"
would not be an error on itself.
So we need to detect whether `-Wno-unsupported-something` is *really*
supported. Luckily, `-Wunsupported-something` will always fail with an
error.
So, whenever there's a need to detect if -Wno-something is supported,
test -Wsomething instead.
2018-02-06 12:53:01 +01:00
Sergei Golubchik
4418abb267
cleanup: simplify maintainer.cmake
2018-02-06 02:33:56 +01:00
Sergei Golubchik
7407313f11
silence the annoying compiler warning
2018-02-05 16:04:12 +01:00