Sergei Golubchik
97b563b5db
less re-cmake messages
2018-08-12 11:37:43 +02:00
Sergei Golubchik
6b53f9d781
MDEV-16662 CMake warnings: CMP0026
2018-08-12 11:37:42 +02:00
Sergei Golubchik
96b8909062
MDEV-16662 CMake warnings: CMP0022
2018-08-12 11:37:42 +02:00
Sergei Golubchik
aa19eda7da
MDEV-16662 CMake warnings: CMP0007
2018-08-12 11:37:42 +02:00
Marko Mäkelä
05459706f2
Merge 10.2 into 10.3
2018-08-03 15:57:23 +03: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
Marko Mäkelä
186a998b5b
Merge 10.2 into 10.3
2018-07-03 10:25:38 +03:00
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
Sergei Golubchik
36e59752e7
Merge branch '10.2' into 10.3
2018-06-30 16:39:20 +02: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
Vladislav Vaintroub
4461b0f9b3
MDEV-16424 replace cmake/bison.cmake with cmake's builtin FindBison module
2018-06-08 14:30:04 +01:00
Sergei Golubchik
cac4100186
cmake: shut up repeated NUMA status messages
2018-06-03 23:25:43 +02:00
Yuqi
ee5124d714
Make MariaDB CRC32-lib platform independence ( #780 )
...
Make mariadb crc32 lib platform independent
It looks strange that someone can make use of 2 crc libraries
(Power64 or AArch64) at the same time.
The patch sets macros 'CRC32_LIBRARY' to make platform independence as an optional crc32 library.
Change-Id: I68bbf73cafb6a12f7fb105ad57d117b114a8c4af
Signed-off-by: Yuqi Gu <yuqi.gu@arm.com>
2018-06-01 14:06:01 +04:00
Sergey Vojtovich
8f888ab1d8
Cleanup log2() portability checks
2018-05-26 13:30:13 +04:00
Sergey Vojtovich
3e63fa6eb3
Cleanup rint() portability checks
2018-05-26 13:27:50 +04:00
Sergey Vojtovich
7ffd7fe962
Cleanup isnan() portability checks
2018-05-26 13:26:32 +04:00
Howard Su
031fa6d425
remove check for finite/isfinite
...
finite is not used anymore in code base. isfinite is part of C99 and we
assume we only support compilers that support C99.
2018-05-24 00:11:33 +04:00
Daniel Black
f165077aa9
MDEV-8743: use mkostemp when available with O_CLOEXEC
...
Closes #639
2018-05-21 16:34:11 +00:00
Daniel Black
2534ae20fd
MDEV-15583 create_temp_file: remove tempnam implementation
...
In the spirit of the man page "Never use this function."
lets purge off this implementation. mkstemp is a widely
available alternative.
Closes #661 .
2018-05-21 16:34:10 +00:00
Vladislav Vaintroub
0040e2932d
pipe and shared memory protocol should be statically compiled into C/C
2018-05-19 15:13:53 +00:00
Daniel Black
c28be510d1
Power8: use C implementation of crc32 instead of ASM
...
Compiles to same vector code, just a bit simplier.
vec_crc32.c is now identical to upstream
(https://github.com/antonblanchard/crc32-vpmsum/ ).
C code by Rogerio Alves <rogealve@br.ibm.com>
This implemention has been tested on big endian too.
Signed-off-by: Daniel Black <daniel@linux.ibm.com>
2018-05-07 09:26:12 +10:00
Sachin Setiya
547b00d910
MDEV-12924 No --innodb-numa-interleave in mysqld binaries
...
It changes the cmake WITH_NUMA option to have 3 values
Auto:- If libnuma present compile with numa (Default value)
OFF:- Compile without libnuma
On:- Compile with numa , throw error if libnuma not present
Patch Contributer:- Vesa
Patch Reviewer:- serg
2018-04-19 13:08:35 +05:30
luz.paz
3dd01669b4
Misc. typos
...
Found via `codespell -i 3 -w --skip="./debian/po" -I ../mariadb-server-word-whitelist.txt ./cmake/ ./debian/ ./Docs/ ./include/ ./man/ ./plugin/ ./strings/`
2018-04-05 15:26:57 +04:00
Marko Mäkelä
e895041ba9
Merge 10.2 into 10.3
2018-03-30 18:27:02 +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
Sergei Golubchik
b1818dccf7
Merge branch '10.2' into 10.3
2018-03-28 17:31:57 +02: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
56e7b7eaed
Make possible to use clang on Windows (clang-cl)
...
-DWITH_ASAN can be used as well now, on x64
Fix many clang-cl warnings.
2018-02-20 21:17:36 +00:00
Marko Mäkelä
2ba487cfe8
Merge bb-10.2-ext into 10.3
2018-02-19 11:37:29 +02:00
Marko Mäkelä
278c036275
Merge 10.2 into bb-10.2-ext
2018-02-19 09:01:06 +02:00
Marko Mäkelä
b006d2ead4
Merge bb-10.2-ext into 10.3
2018-02-15 10:22:03 +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
355ee6877b
MDEV-13946 Server RPMs have dependency on "which"
...
cleanup. use "command -v" instead of "which"
simplify some checks.
2018-02-12 12:46:34 +01:00
Alexander Barkov
3cad31f2a7
Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext
2018-02-08 19:06:25 +04:00
Vladislav Vaintroub
53476abce8
Windows, compiling : use /permissive- switch to improve conformance
...
fix a couple "initialization skipped by goto" and other new errors.
2018-02-07 20:22:30 +00:00