]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: fix "rm -rf" cmd
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 3 Nov 2016 06:14:49 +0000 (14:14 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 3 Nov 2016 06:14:49 +0000 (14:14 +0800)
The original cmd won't do the tidy-up work completedly.

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

index 2629075cede520e10de7b0c902eb18cbc6c2b08d..11ecbf5d35ca29a98446265caa78159d79459671 100644 (file)
@@ -3420,7 +3420,7 @@ int BlueStore::_open_db(bool create)
       rocksdb::Env *b = rocksdb::Env::Default();
       if (create) {
        string cmd = "rm -rf " + path + "/db " +
-         path + "/db.slow" +
+         path + "/db.slow " +
          path + "/db.wal";
        int r = system(cmd.c_str());
        (void)r;