mirror of https://gitee.com/bigwinds/arangodb
OMG bug in agency::write and startup sequence
This commit is contained in:
parent
8f92dde3c3
commit
c7467dada9
|
@ -919,7 +919,7 @@ write_ret_t Agent::write(query_t const& query, bool discardStartup) {
|
||||||
return write_ret_t(false, leader);
|
return write_ret_t(false, leader);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!discardStartup) {
|
if (discardStartup) {
|
||||||
CONDITION_LOCKER(guard, _waitForCV);
|
CONDITION_LOCKER(guard, _waitForCV);
|
||||||
while (_startup) {
|
while (_startup) {
|
||||||
_waitForCV.wait(100);
|
_waitForCV.wait(100);
|
||||||
|
|
Loading…
Reference in New Issue