]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix a typo in SPDK path parsing 7601/head
authorJianjian Huo <samuel.huo@gmail.com>
Thu, 11 Feb 2016 01:44:33 +0000 (20:44 -0500)
committerJianjian Huo <samuel.huo@gmail.com>
Thu, 11 Feb 2016 01:44:33 +0000 (20:44 -0500)
commit40936fb1f5f23891d012579a0acf6ef6038d19f3
tree663421bf20ac3b083e02c2b3486e9c190fc95b7f
parent0148eacb8dd38f2e26c43b3480d989d7670d8c37
os/bluestore: fix a typo in SPDK path parsing

SPDK block path with bluestore is something like spdk:55cd2e404bd73932.
The size of the prefix to compare should be 5.
sizeof(SPDK_PREFIX)-1 returns 5, while sizeof(SPDK_PREFIX-1) returns 8.

Signed-off-by: Jianjian Huo <samuel.huo@gmail.com>
src/os/bluestore/BlueStore.cc