1
0
Fork 0

removed debug output

This commit is contained in:
jsteemann 2017-01-06 14:32:12 +01:00
parent f637cfdeeb
commit 31375b25b9
1 changed files with 5 additions and 11 deletions

View File

@ -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;