From: zhanglei <243290414@qq.com> Date: Fri, 9 Jun 2017 09:38:24 +0000 (-0400) Subject: os/bluestore/BlueFS:.slow should be compared with dirname X-Git-Tag: v12.1.0~160^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=31d0d3748205ceeba6cbedacc8443696f50cdc9f;p=ceph.git os/bluestore/BlueFS:.slow should be compared with dirname Signed-off-by: zhanglei <243290414@qq.com> --- diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index db1dad55451a..2a0ef1045e75 100644 --- a/src/os/bluestore/BlueFS.cc +++ b/src/os/bluestore/BlueFS.cc @@ -1969,7 +1969,7 @@ int BlueFS::open_for_write( // match up with bluestore. the slow device is always the second // one (when a dedicated block.db device is present and used at // bdev 0). the wal device is always last. - if (boost::algorithm::ends_with(filename, ".slow")) { + if (boost::algorithm::ends_with(dirname, ".slow")) { file->fnode.prefer_bdev = BlueFS::BDEV_SLOW; } else if (boost::algorithm::ends_with(dirname, ".wal")) { file->fnode.prefer_bdev = BlueFS::BDEV_WAL;