summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahooinc.com>2023-07-14 19:34:56 +0200
committerGitHub <noreply@github.com>2023-07-14 19:34:56 +0200
commit8eb009d276f9ab6b6774d8a4f44575f502def059 (patch)
treec55b018c153476f6acd77f6706d76aebffc2c45b /searchlib
parentce4ed65e7088690bbcce6146d55854699d900bda (diff)
parentb4106cee429c6e2e2efcd2bd7eb3717ca68496c2 (diff)
Merge pull request #27784 from vespa-engine/toregge/use-std-flesystem-remove-in-field-writer
Use std::filesystem::remove in field writer.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/diskindex/fieldwriter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/searchlib/src/vespa/searchlib/diskindex/fieldwriter.cpp b/searchlib/src/vespa/searchlib/diskindex/fieldwriter.cpp
index 7f6f5c4ed15..6d849532931 100644
--- a/searchlib/src/vespa/searchlib/diskindex/fieldwriter.cpp
+++ b/searchlib/src/vespa/searchlib/diskindex/fieldwriter.cpp
@@ -5,8 +5,9 @@
#include "extposocc.h"
#include "pagedict4file.h"
#include <vespa/vespalib/util/error.h>
-#include <vespa/log/log.h>
+#include <filesystem>
+#include <vespa/log/log.h>
LOG_SETUP(".diskindex.fieldwriter");
using search::index::FieldLengthInfo;
@@ -184,7 +185,7 @@ FieldWriter::remove(const vespalib::string &prefix)
{
for (const char **j = termOccNames; *j != nullptr; ++j) {
vespalib::string tmpName = prefix + *j;
- FastOS_File::Delete(tmpName.c_str());
+ std::filesystem::remove(std::filesystem::path(tmpName));
}
}