summaryrefslogtreecommitdiffstats
path: root/src/compressor/Compressor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compressor/Compressor.h')
-rw-r--r--src/compressor/Compressor.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compressor/Compressor.h b/src/compressor/Compressor.h
index 8b26bacf178..6a4eb277668 100644
--- a/src/compressor/Compressor.h
+++ b/src/compressor/Compressor.h
@@ -88,11 +88,11 @@ public:
CompressionAlgorithm get_type() const {
return alg;
}
- virtual int compress(const ceph::bufferlist &in, ceph::bufferlist &out) = 0;
- virtual int decompress(const ceph::bufferlist &in, ceph::bufferlist &out) = 0;
+ virtual int compress(const ceph::bufferlist &in, ceph::bufferlist &out, boost::optional<int32_t> &compressor_message) = 0;
+ virtual int decompress(const ceph::bufferlist &in, ceph::bufferlist &out, boost::optional<int32_t> compressor_message) = 0;
// this is a bit weird but we need non-const iterator to be in
// alignment with decode methods
- virtual int decompress(ceph::bufferlist::const_iterator &p, size_t compressed_len, ceph::bufferlist &out) = 0;
+ virtual int decompress(ceph::bufferlist::const_iterator &p, size_t compressed_len, ceph::bufferlist &out, boost::optional<int32_t> compressor_message) = 0;
static CompressorRef create(CephContext *cct, const std::string &type);
static CompressorRef create(CephContext *cct, int alg);