]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
compressor: conditionalize on HAVE_LZ4
authorKefu Chai <kchai@redhat.com>
Thu, 17 Aug 2017 07:12:22 +0000 (15:12 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 17 Aug 2017 07:12:25 +0000 (15:12 +0800)
commitb5ea349c0dfd31c5126e229d5455a2c111ce47ff
treedb7c8512d2dbbd7d791f4426d1485b607ee38ceb
parent588e5d03b6c9c5eb1d9b8a2d6ca20980f07c503b
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>
src/compressor/Compressor.cc
src/compressor/Compressor.h