]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
compressor: conditionalize on HAVE_LZ4 17174/head
authorKefu Chai <kchai@redhat.com>
Thu, 17 Aug 2017 07:12:22 +0000 (15:12 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 23 Aug 2017 02:42:44 +0000 (10:42 +0800)
commita98ce0cc980fdb9af729e85ac81351ee262d3462
treebe860972ce87aa8e3acec1854024cbbcfa016a9d
parent32c432887cc38f503697458aa39bd316c4a82069
compressor: conditionalize on HAVE_LZ4

do not enable lz4 compressor plugin unless HAVE_LZ4 is ON. so, for
example, when the compressor type is "random", the compressor factory
won't complain with:

load failed dlopen(): "/usr/lib64/ceph/compressor/libceph_lz4.so: cannot
open shared object file: No such file or directory"

anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit b5ea349c0dfd31c5126e229d5455a2c111ce47ff)
src/compressor/Compressor.cc
src/compressor/Compressor.h