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);
if (res != 0) {
#ifdef _WIN32
int hihi = errno;
TRI_ERRORBUF;
TRI_SYSTEM_ERROR();
LOG(ERR) << "cannot unlink file: " << windowsErrorBuf << ", hihi: " << hihi << ", ENOENT: " << ENOENT;
errno = hihi;
#endif
int e = errno;
TRI_set_errno(TRI_ERROR_SYS_ERROR);
LOG(TRACE) << "cannot unlink file '" << filename
<< "': " << TRI_LAST_ERROR_STR;
int e = TRI_errno();
if (e == ENOENT) {
return TRI_ERROR_FILE_NOT_FOUND;
}
if (e == EPERM) {
return TRI_ERROR_FORBIDDEN;
}
return e;
return TRI_ERROR_SYS_ERROR;
}
return TRI_ERROR_NO_ERROR;