mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
This commit is contained in:
commit
adf3778f34
|
@ -521,6 +521,10 @@ static void JS_FlushWal(v8::FunctionCallbackInfo<v8::Value> const& args) {
|
|||
waitForSync, waitForCollector, writeShutdownFile);
|
||||
|
||||
if (res != TRI_ERROR_NO_ERROR) {
|
||||
if (res == TRI_ERROR_LOCK_TIMEOUT) {
|
||||
// improved diagnostic message for this special case
|
||||
TRI_V8_THROW_EXCEPTION_MESSAGE(res, "timed out waiting for WAL flush operation");
|
||||
}
|
||||
TRI_V8_THROW_EXCEPTION(res);
|
||||
}
|
||||
|
||||
|
|
|
@ -1373,8 +1373,8 @@ int LogfileManager::getWriteableLogfile(uint32_t size,
|
|||
}
|
||||
|
||||
TRI_ASSERT(result == nullptr);
|
||||
LOG(WARN) << "unable to acquire writeable WAL logfile after "
|
||||
<< (MaxIterations * SleepTime) / 1000 << " ms";
|
||||
LOG(ERR) << "unable to acquire writeable WAL logfile after "
|
||||
<< (MaxIterations * SleepTime) / 1000 << " ms";
|
||||
|
||||
return TRI_ERROR_LOCK_TIMEOUT;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue