diff options
author | Arne H Juul <arnej@yahooinc.com> | 2022-06-21 12:07:08 +0000 |
---|---|---|
committer | Arne H Juul <arnej@yahooinc.com> | 2022-06-21 12:07:08 +0000 |
commit | 9d87affce8ca7ec4bd288e68fbab6b401a92ede8 (patch) | |
tree | 060229015502b4fad64ed6c37007349e20d8e810 | |
parent | 23bb4a910a0c12b7204b3fb29deea43abd514007 (diff) |
simplify after review
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/server/proton.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/proton.cpp b/searchcore/src/vespa/searchcore/proton/server/proton.cpp index 00447fc9ba1..c4b30d50dbd 100644 --- a/searchcore/src/vespa/searchcore/proton/server/proton.cpp +++ b/searchcore/src/vespa/searchcore/proton/server/proton.cpp @@ -150,12 +150,9 @@ VESPA_THREAD_STACK_TAG(proton_initialize_executor) VESPA_THREAD_STACK_TAG(proton_close_executor) void ensureWritableDir(const vespalib::string &dirName) { - int pidnum = ::getpid(); - int secnum = ::time(0); - auto pidstr = std::to_string(pidnum); - auto secstr = std::to_string(secnum); - auto filename = dirName + "/tmp.file." + pidstr + "." + secstr; + auto filename = dirName + "/tmp.filesystem.probe"; vespalib::File probe(filename); + probe.unlink(); probe.open(vespalib::File::CREATE); probe.write("probe\n", 6, 0); probe.close(); |