• Jan Lindström's avatar
    MDEV-12593: InnoDB page compression should use lz4_compress_default if · f302a3cf
    Jan Lindström authored
    available
    
    lz4.cmake: Check if shared or static lz4 library has LZ4_compress_default
    function and if it has define HAVE_LZ4_COMPRESS_DEFAULT.
    
    fil_compress_page: If HAVE_LZ4_COMPRESS_DEFAULT is defined use
    LZ4_compress_default function for compression if not use
    LZ4_compress_limitedOutput function.
    
    Introduced a innodb-page-compression.inc file for page compression
    tests that will also search .ibd file to verify that pages
    are compressed (i.e. used search string is not found). Modified
    page compression tests to use this file.
    
    Note that snappy method is not included because of MDEV-12615
    InnoDB page compression method snappy mostly does not compress pages
    that will be fixed on different commit.
    f302a3cf
innodb-page_compression_default.test 318 Bytes