]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
compressor: put Compressor into TOPNSPC namespace
authorKefu Chai <kchai@redhat.com>
Sat, 21 Nov 2020 09:26:37 +0000 (17:26 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 6 Dec 2020 04:13:42 +0000 (12:13 +0800)
commit1684f60f7e984017627a91ac84920cc51244cf20
treebdb439d4a3e77d75775ed1b60634dd3106b5a3c5
parent72f27fcdc837ee2679847fe41f8678b59a613394
compressor: put Compressor into TOPNSPC namespace

we want to add the support for on-the-wire compression to msgr v2, and
this feature will be shared by classic osd and crimson. but
Compressor.cc is also used by bluestore which is linked against by
crimson also. Compressor depends on CephContext which has two different
implementation in two namespaces for classic osd and crison.

so to avoid violating ODR, we should also put Compressor into two
different namespaces so it can be shared by alienstore and crimson in
the same executable.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/compressor/CompressionPlugin.h
src/compressor/Compressor.cc
src/compressor/Compressor.h