]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix race condition of global csum setting 11195/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 22 Sep 2016 11:59:05 +0000 (19:59 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 22 Sep 2016 14:46:50 +0000 (22:46 +0800)
commit07f697799bd9ffc865ff776a33ab7f6c6df72da9
tree1ebc6bd0d65690e7b65615ef72c257f5b71e64f4
parentef9013445d560d46b82c696168e1b21accd75aaf
os/bluestore: fix race condition of global csum setting

The global csum_type option can be changed dynamically and
can be fixed by upgrading into std::atomic.

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