mirror of
https://github.com/MariaDB/server.git
synced 2026-05-17 20:37:12 +02:00
MDEV-12933 sort out the compression library chaos
bzip2/lz4/lzma/lzo/snappy compression is now provided via *services* they're almost like normal services, but in include/providers/ and they're supposed to provide exactly the same interface as original compression libraries (but not everything, only enough of if for the code to compile). the services are implemented via dummy functions that return corresponding error values (LZMA_PROG_ERROR, LZO_E_INTERNAL_ERROR, etc). the actual compression libraries are linked into corresponding provider plugins. Providers are daemon plugins that when loaded replace service pointers to point to actual compression functions. That is, run-time dependency on compression libraries is now on plugins, and the server doesn't need any compression libraries to run, but will automatically support the compression when a plugin is loaded. InnoDB and Mroonga use compression plugins now. RocksDB doesn't, because it comes with standalone utility binaries that cannot load plugins.
This commit is contained in:
parent
c356714d77
commit
bf8b699f64
94 changed files with 1954 additions and 451 deletions
|
|
@ -110,19 +110,9 @@ if(MRN_GROONGA_BUNDLED)
|
|||
set(GROONGA_NORMALIZER_MYSQL_EMBED ON)
|
||||
endif()
|
||||
|
||||
file(READ "${MRN_BUNDLED_GROONGA_DIR}/bundled_lz4_version"
|
||||
MRN_BUNDLED_LZ4_VERSION)
|
||||
string(STRIP
|
||||
"${MRN_BUNDLED_LZ4_VERSION}"
|
||||
MRN_BUNDLED_LZ4_VERSION)
|
||||
set(MRN_BUNDLED_LZ4_DIR
|
||||
"${MRN_BUNDLED_GROONGA_DIR}/vendor/lz4-${MRN_BUNDLED_LZ4_VERSION}")
|
||||
if(EXISTS ${MRN_BUNDLED_LZ4_DIR})
|
||||
set(GRN_WITH_BUNDLED_LZ4 ON)
|
||||
set(GRN_WITH_LZ4 "yes")
|
||||
else()
|
||||
set(GRN_WITH_LZ4 "no")
|
||||
endif()
|
||||
set(GRN_WITH_LZ4 "yes")
|
||||
set(LIBLZ4_FOUND TRUE)
|
||||
set(LZ4_LIBS "" CACHE STRING "" FORCE)
|
||||
|
||||
add_subdirectory("${MRN_BUNDLED_GROONGA_RELATIVE_DIR}")
|
||||
else()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue