]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: change algorithm of compression header from string to int 10137/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 6 Jul 2016 02:06:40 +0000 (10:06 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 8 Jul 2016 11:39:17 +0000 (19:39 +0800)
commit1209cb3d1286c47477cd2826add9a6c2e1fc2682
treee58b73eed48f9103b10297323b026024adcb3369
parentfa8107a0c5c3f96331e965d45a85c6e1fd56db81
os/bluestore: change algorithm of compression header from string to int

The literal description of compression algorithm can vary from
various compression types and thus increases the complexity of
en/decoding, which as a result can cause chaos. Also it can be
more efficient by translating it into a fixed-length type.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc
src/os/bluestore/bluestore_types.cc
src/os/bluestore/bluestore_types.h