mirror of https://gitee.com/bigwinds/arangodb
NULL
This commit is contained in:
parent
cf14609727
commit
0d75f16e09
|
@ -1116,7 +1116,7 @@ void ArangoServer::openDatabases (bool checkVersion,
|
||||||
|
|
||||||
if (res != TRI_ERROR_NO_ERROR) {
|
if (res != TRI_ERROR_NO_ERROR) {
|
||||||
if (checkVersion && res == TRI_ERROR_ARANGO_EMPTY_DATADIR) {
|
if (checkVersion && res == TRI_ERROR_ARANGO_EMPTY_DATADIR) {
|
||||||
TRI_EXIT_FUNCTION(EXIT_SUCCESS, NULL);
|
TRI_EXIT_FUNCTION(EXIT_SUCCESS, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_FATAL_AND_EXIT("cannot start server: %s", TRI_errno_string(res));
|
LOG_FATAL_AND_EXIT("cannot start server: %s", TRI_errno_string(res));
|
||||||
|
|
|
@ -183,7 +183,7 @@ int SynchroniserThread::doSync () {
|
||||||
// get the logfile's file descriptor
|
// get the logfile's file descriptor
|
||||||
int fd = getLogfileDescriptor(region.logfileId);
|
int fd = getLogfileDescriptor(region.logfileId);
|
||||||
TRI_ASSERT(fd >= 0);
|
TRI_ASSERT(fd >= 0);
|
||||||
void** mmHandle = NULL;
|
void** mmHandle = nullptr;
|
||||||
bool result = TRI_MSync(fd, mmHandle, region.mem, region.mem + region.size);
|
bool result = TRI_MSync(fd, mmHandle, region.mem, region.mem + region.size);
|
||||||
|
|
||||||
LOG_TRACE("syncing logfile %llu, region %p - %p, length: %lu, wfs: %s",
|
LOG_TRACE("syncing logfile %llu, region %p - %p, length: %lu, wfs: %s",
|
||||||
|
|
Loading…
Reference in New Issue