summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-07-17 11:26:58 +0200
committerHenning Baldersheim <balder@oath.com>2018-07-17 11:26:58 +0200
commit6c8778ab3fb28c5244e4c6e37b91700928e70b15 (patch)
tree13b0b171b66f0d359f4af59cdbbb6d7cf4fb86fc /searchcore
parent2412247448a6ce5a09c1c34a87df6ac5b97805d0 (diff)
Reduce wait between same targets to from 1s to 100ms
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/flushengine/flushengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/flushengine/flushengine.cpp b/searchcore/src/vespa/searchcore/proton/flushengine/flushengine.cpp
index 93e325a0f21..1b0ec0db073 100644
--- a/searchcore/src/vespa/searchcore/proton/flushengine/flushengine.cpp
+++ b/searchcore/src/vespa/searchcore/proton/flushengine/flushengine.cpp
@@ -306,7 +306,7 @@ FlushEngine::flushNextTarget(const vespalib::string & name)
LOG(info, "The same target %s out of %ld has been asked to flush again. "
"This might indicate flush logic flaw so I will wait 1s before doing it.",
name.c_str(), lst.first.size());
- FastOS_Thread::Sleep(1000);
+ std::this_thread::sleep_for(100ms);
}
_executor.execute(std::make_unique<FlushTask>(initFlush(*ctx), *this, ctx));
return ctx->getName();