]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: count length of SPDK_PREFIX in a more human-readable way 10277/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 13 Jul 2016 07:19:25 +0000 (15:19 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 13 Jul 2016 07:19:25 +0000 (15:19 +0800)
commitde59926d9596010cd9e9331cc9d6c2e602b814c9
tree2e6250b3d231719700676fc87c70dc79f8834671
parent38c4286b4a31fd22298080ad950aa18bded66db2
os/bluestore: count length of SPDK_PREFIX in a more human-readable way

The strlen() will automatically exclude the NUL terminator of a literal
constant. Also by calling strlen(), we know that we are definitely
operate on a string instead of something odd.

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