mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-18 02:05:13 +00:00
Consume return value from FdEntity::Flush
Found via Coverity.
This commit is contained in:
parent
80972aa33d
commit
43d1439420
@ -1573,7 +1573,10 @@ static int s3fs_rename(const char* _from, const char* _to)
|
||||
// flush pending writes if file is open
|
||||
FdEntity *entity = FdManager::get()->ExistOpen(from);
|
||||
if(entity != NULL){
|
||||
entity->Flush(true);
|
||||
if(0 != (result = entity->Flush(true))){
|
||||
S3FS_PRN_ERR("could not upload file(%s): result=%d", to, result);
|
||||
return result;
|
||||
}
|
||||
StatCache::getStatCacheData()->DelStat(from);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user