From 46b67f3d177d10e7364df0a1302bc98641d5a832 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 6 Oct 2016 13:47:56 -0400 Subject: unittest_compression: restore zlib_isal setting Signed-off-by: Sage Weil --- src/test/compressor/test_compression.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/test') 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); -- cgit v1.2.3