summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-12-29 00:57:43 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2017-12-29 08:59:59 +0100
commitf6264a976a943cde377b0aa86e3c13f8990ed55e (patch)
tree616e9d0f542e33f60ed7d18833cd3b02334e3c9d /searchcore
parent6afc44c61d16fbd2e89b1d28c7f50c4f00fdcd0f (diff)
Do not include the world.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/persistenceengine/persistenceengine.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/persistenceengine/persistenceengine.cpp b/searchcore/src/vespa/searchcore/proton/persistenceengine/persistenceengine.cpp
index c7b01d209ee..390f8241b1d 100644
--- a/searchcore/src/vespa/searchcore/proton/persistenceengine/persistenceengine.cpp
+++ b/searchcore/src/vespa/searchcore/proton/persistenceengine/persistenceengine.cpp
@@ -4,7 +4,6 @@
#include "ipersistenceengineowner.h"
#include "transport_latch.h"
#include <vespa/vespalib/stllike/hash_set.h>
-#include <vespa/fastos/thread.h>
#include <vespa/log/log.h>
LOG_SETUP(".proton.persistenceengine.persistenceengine");
@@ -23,6 +22,8 @@ using vespalib::IllegalStateException;
using vespalib::Sequence;
using vespalib::make_string;
+using namespace std::chrono_literals;
+
namespace proton {
namespace {
@@ -623,7 +624,7 @@ PersistenceEngine::destroyIterators()
Result res(destroyIterator(id, context));
if (res.hasError()) {
LOG(debug, "%ld iterator left. Can not destroy iterator '%ld'. Reason='%s'", _iterators.size(), id.getValue(), res.toString().c_str());
- FastOS_Thread::Sleep(100); // Sleep 0.1 seconds
+ std::this_thread::sleep_for(100ms);
}
}
}