Merge "Change the CHECK failure into function failure." into oc-dev
This commit is contained in:
commit
bf6e949727
1 changed files with 6 additions and 1 deletions
|
@ -119,7 +119,12 @@ ResultOrAgain WriteInternal(const FuseMessage<T>* self, int fd, int sockflag, co
|
|||
return ResultOrAgain::kFailure;
|
||||
}
|
||||
}
|
||||
CHECK(static_cast<uint32_t>(result) == header.len);
|
||||
|
||||
if (static_cast<unsigned int>(result) != header.len) {
|
||||
LOG(ERROR) << "Written bytes " << result << " is different from length in header "
|
||||
<< header.len;
|
||||
return ResultOrAgain::kFailure;
|
||||
}
|
||||
return ResultOrAgain::kSuccess;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue