]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: add checking to catch unspecified compression algorithm 11468/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 13 Oct 2016 09:23:20 +0000 (17:23 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 13 Oct 2016 12:00:51 +0000 (20:00 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc

index 52b3ee2042f3dfa18c5d872ad0c437823b8c77dc..2e219d5cbd9b0cee1b5074db521bd125d87b11ac 100644 (file)
@@ -2471,6 +2471,11 @@ void BlueStore::_set_compression()
            << ", reverting compression mode to 'none'"
            << dendl;
       comp_mode = COMP_NONE;
+    } else {
+      derr << __func__ << " compression algorithm not specified, "
+           << "reverting compression mode to 'none'"
+           << dendl;
+      comp_mode = COMP_NONE;
     }
 
     if (alg) {