diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/compressor/test_compression.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/compressor/test_compression.cc b/src/test/compressor/test_compression.cc index 22e35c67415..1a18104c33b 100644 --- a/src/test/compressor/test_compression.cc +++ b/src/test/compressor/test_compression.cc @@ -30,8 +30,12 @@ class CompressionTest : public ::testing::Test, public: std::string plugin; CompressorRef compressor; + bool old_zlib_isal; CompressionTest() { + // note for later + old_zlib_isal = g_conf->compressor_zlib_isal; + plugin = GetParam(); size_t pos = plugin.find('/'); if (pos != std::string::npos) { @@ -49,6 +53,10 @@ public: } cout << "[plugin " << plugin << " (" << GetParam() << ")]" << std::endl; } + ~CompressionTest() { + g_conf->set_val("compressor_zlib_isal", old_zlib_isal ? "true" : "false"); + g_ceph_context->_conf->apply_changes(NULL); + } void SetUp() { compressor = Compressor::create(g_ceph_context, plugin); |