Merge "Fix incorrect use of TEMP_FAILURE_RETRY"
This commit is contained in:
commit
442727c6e8
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ bool fileSetContents(const string& path, const vector<uint8_t>& data) {
|
|||
remaining -= numWritten;
|
||||
}
|
||||
|
||||
if (TEMP_FAILURE_RETRY(fsync(fd) == -1)) {
|
||||
if (TEMP_FAILURE_RETRY(fsync(fd))) {
|
||||
PLOG(ERROR) << "Failed fsyncing temp file for '" << path << "'";
|
||||
close(fd);
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue