fix multihead warning check

This commit is contained in:
Or Ozeri 2018-11-28 09:54:02 +02:00
parent a92668ae78
commit b91fc5409e

View File

@ -3923,7 +3923,7 @@ int S3fsMultiCurl::MultiPerform(void)
if (rc == 0) {
iter = threads.erase(iter);
int int_retval = (int)(intptr_t)(retval);
if (int_retval && !(int_retval == ENOENT && isMultiHead)) {
if (int_retval && !(int_retval == -ENOENT && isMultiHead)) {
S3FS_PRN_WARN("thread failed - rc(%d)", int_retval);
}
break;
@ -3970,7 +3970,7 @@ int S3fsMultiCurl::MultiPerform(void)
S3FS_PRN_ERR("failed pthread_join - rc(%d)", rc);
} else {
int int_retval = (int)(intptr_t)(retval);
if (int_retval && !(int_retval == ENOENT && isMultiHead)) {
if (int_retval && !(int_retval == -ENOENT && isMultiHead)) {
S3FS_PRN_WARN("thread failed - rc(%d)", int_retval);
}
}