]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/BlueFS:.slow should be compared with dirname
authorzhanglei <243290414@qq.com>
Fri, 9 Jun 2017 09:38:24 +0000 (05:38 -0400)
committerzhanglei <243290414@qq.com>
Fri, 9 Jun 2017 09:38:24 +0000 (05:38 -0400)
Signed-off-by: zhanglei <243290414@qq.com>
src/os/bluestore/BlueFS.cc

index db1dad55451a1ec489d583d74a2d88df25ae33f3..2a0ef1045e752587e9d533da2433550883e20b67 100644 (file)
@@ -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;