mirror of https://gitee.com/bigwinds/arangodb
removed debug output
This commit is contained in:
parent
f637cfdeeb
commit
31375b25b9
|
@ -876,23 +876,17 @@ int TRI_UnlinkFile(char const* filename) {
|
||||||
int res = TRI_UNLINK(filename);
|
int res = TRI_UNLINK(filename);
|
||||||
|
|
||||||
if (res != 0) {
|
if (res != 0) {
|
||||||
#ifdef _WIN32
|
int e = errno;
|
||||||
int hihi = errno;
|
|
||||||
TRI_ERRORBUF;
|
|
||||||
TRI_SYSTEM_ERROR();
|
|
||||||
|
|
||||||
LOG(ERR) << "cannot unlink file: " << windowsErrorBuf << ", hihi: " << hihi << ", ENOENT: " << ENOENT;
|
|
||||||
errno = hihi;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
TRI_set_errno(TRI_ERROR_SYS_ERROR);
|
TRI_set_errno(TRI_ERROR_SYS_ERROR);
|
||||||
LOG(TRACE) << "cannot unlink file '" << filename
|
LOG(TRACE) << "cannot unlink file '" << filename
|
||||||
<< "': " << TRI_LAST_ERROR_STR;
|
<< "': " << TRI_LAST_ERROR_STR;
|
||||||
int e = TRI_errno();
|
|
||||||
if (e == ENOENT) {
|
if (e == ENOENT) {
|
||||||
return TRI_ERROR_FILE_NOT_FOUND;
|
return TRI_ERROR_FILE_NOT_FOUND;
|
||||||
}
|
}
|
||||||
return e;
|
if (e == EPERM) {
|
||||||
|
return TRI_ERROR_FORBIDDEN;
|
||||||
|
}
|
||||||
|
return TRI_ERROR_SYS_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRI_ERROR_NO_ERROR;
|
return TRI_ERROR_NO_ERROR;
|
||||||
|
|
Loading…
Reference in New Issue