aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/apps/vespa-redistribute-bm/vespa_redistribute_bm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/apps/vespa-redistribute-bm/vespa_redistribute_bm.cpp')
-rw-r--r--searchcore/src/apps/vespa-redistribute-bm/vespa_redistribute_bm.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/searchcore/src/apps/vespa-redistribute-bm/vespa_redistribute_bm.cpp b/searchcore/src/apps/vespa-redistribute-bm/vespa_redistribute_bm.cpp
index 40847baa719..f22e817b72c 100644
--- a/searchcore/src/apps/vespa-redistribute-bm/vespa_redistribute_bm.cpp
+++ b/searchcore/src/apps/vespa-redistribute-bm/vespa_redistribute_bm.cpp
@@ -22,13 +22,13 @@
#include <vespa/searchcore/bmcluster/bucket_selector.h>
#include <vespa/searchcore/bmcluster/spi_bm_feed_handler.h>
#include <vespa/searchlib/index/dummyfileheadercontext.h>
-#include <vespa/vespalib/io/fileutil.h>
#include <vespa/vespalib/objects/nbostream.h>
#include <vespa/vespalib/testkit/testapp.h>
#include <vespa/vespalib/util/lambdatask.h>
#include <vespa/vespalib/util/size_literals.h>
#include <vespa/vespalib/util/threadstackexecutor.h>
#include <getopt.h>
+#include <filesystem>
#include <iostream>
#include <thread>
#include <unistd.h>
@@ -670,7 +670,7 @@ App::main(int argc, char **argv)
usage();
return 1;
}
- vespalib::rmdir(base_dir, true);
+ std::filesystem::remove_all(std::filesystem::path(base_dir));
Benchmark bm(_bm_params);
bm.run();
return 0;
@@ -681,6 +681,6 @@ int main(int argc, char **argv) {
DummyFileHeaderContext::setCreator("vespa-redistribute-bm");
App app;
auto exit_value = app.main(argc, argv);
- vespalib::rmdir(base_dir, true);
+ std::filesystem::remove_all(std::filesystem::path(base_dir));
return exit_value;
}