mariadb/storage/tokudb/PerconaFT
Daniel Black 56948ee54c clang15 warnings - unused vars and old prototypes
clang15 finally errors on old prototype definations.

Its also a lot fussier about variables that aren't used
as is the case a number of time with loop counters that
aren't examined.

RocksDB was complaining that its get_range function was
declared without the array length in ha_rocksdb.h. While
a constant is used rather than trying to import the
Rdb_key_def::INDEX_NUMBER_SIZE header (was causing a lot of
errors on the defination of other orders). If the constant
does change can be assured that the same compile warnings will
tell us of the error.

The ha_rocksdb::index_read_map_impl DBUG_EXECUTE_IF was similar
to the existing endless functions used in replication tests.
Its rather moot point as the rocksdb.force_shutdown test that
uses myrocks_busy_loop_on_row_read is currently disabled.
2023-01-10 17:10:43 +00:00
..
buildbot
buildheader Merge branch 'github/10.0' into 10.1 2018-02-02 10:09:44 +01:00
cmake Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
cmake_modules Merge branch '10.2' into 10.3 2020-08-06 17:01:44 +02:00
ft clang15 warnings - unused vars and old prototypes 2023-01-10 17:10:43 +00:00
ftcxx Merge branch 'merge/merge-tokudb-5.6' into 10.1 2020-08-05 01:46:02 +02:00
locktree Merge branch 'merge/merge-tokudb-5.6' into 10.1 2020-08-05 01:46:02 +02:00
portability Merge branch '10.2' into 10.3 2021-10-28 12:41:27 +02:00
scripts Remove an unused tokuvalgrind script 2020-01-23 16:31:25 +02:00
src Merge branch '10.1' into 10.2 2020-08-06 16:47:39 +02:00
third_party Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
tools 5.6.49-89.0 2020-08-04 12:44:43 +02:00
util Merge branch 'merge-tokudb-5.6' into 10.1 2019-07-26 10:48:12 +02:00
.clang-format 5.6.39-83.1 2018-04-24 16:25:16 +02:00
bash.suppressions
CMakeLists.txt 5.6.49-89.0 2020-08-04 12:44:43 +02:00
COPYING.AGPLv3
COPYING.APACHEv2 5.6.43-84.3 2019-04-26 17:02:15 +02:00
COPYING.GPLv2 Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
CTestConfig.cmake
CTestCustom.cmake.in
PATENTS
README.md 5.6.43-84.3 2019-04-26 17:02:15 +02:00

PerconaFT

PerconaFT is a high-performance, transactional key-value store, used in the TokuDB storage engine for Percona Server and MySQL, and in TokuMX, the high-performance MongoDB distribution.

PerconaFT is provided as a shared library with an interface similar to Berkeley DB.

To build the full MySQL product, see the instructions for Percona/percona-server. This document covers PerconaFT only.

Building

PerconaFT is built using CMake >= 2.8.9. Out-of-source builds are recommended. You need a C++11 compiler, though only some versions of GCC >= 4.7 and Clang are tested. You also need zlib development packages (yum install zlib-devel or apt-get install zlib1g-dev).

You will also need the source code for jemalloc, checked out in third_party/.

git clone git://github.com/Percona/PerconaFT.git percona-ft
cd percona-ft
git clone git://github.com/Percona/jemalloc.git third_party/jemalloc
mkdir build
cd build
CC=gcc47 CXX=g++47 cmake \
    -D CMAKE_BUILD_TYPE=Debug \
    -D BUILD_TESTING=OFF \
    -D USE_VALGRIND=OFF \
    -D CMAKE_INSTALL_PREFIX=../prefix/ \
    ..
cmake --build . --target install

This will build libft.so and libtokuportability.so and install it, some header files, and some examples to percona-ft/prefix/. It will also build jemalloc and install it alongside these libraries, you should link to that if you are planning to run benchmarks or in production.

Platforms

PerconaFT is supported on 64-bit Centos, Debian, and Ubuntu and should work on other 64-bit linux distributions, and may work on OSX 10.8 and FreeBSD. PerconaFT is not supported on 32-bit systems.

Transparent hugepages is a feature in newer linux kernel versions that causes problems for the memory usage tracking calculations in PerconaFT and can lead to memory overcommit. If you have this feature enabled, PerconaFT will not start, and you should turn it off. If you want to run with transparent hugepages on, you can set an environment variable TOKU_HUGE_PAGES_OK=1, but only do this for testing, and only with a small cache size.

Testing

PerconaFT uses CTest for testing. The CDash testing dashboard is not currently public, but you can run the tests without submitting them.

There are some large data files not stored in the git repository, that will be made available soon. For now, the tests that use these files will not run.

In the build directory from above:

cmake -D BUILD_TESTING=ON ..
ctest -D ExperimentalStart \
      -D ExperimentalConfigure \
      -D ExperimentalBuild \
      -D ExperimentalTest

Contributing

Please report bugs in PerconaFT to the issue tracker.

We have two publicly accessible mailing lists for TokuDB:

All source code and test contributions must be provided under a BSD 2-Clause license. For any small change set, the license text may be contained within the commit comment and the pull request. For larger contributions, the license must be presented in a COPYING.<feature_name> file in the root of the PerconaFT project. Please see the BSD 2-Clause license template for the content of the license text.

License

Portions of the PerconaFT library (the 'locktree' and 'omt') are available under the Apache version 2 license. PerconaFT is available under the GPL version 2, and AGPL version 3. See COPYING.APACHEv2, COPYING.AGPLv3, COPYING.GPLv2, and PATENTS.