mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-06-02 00:50:49 +00:00
Fixed a bug in s3fs_write
This commit is contained in:
parent
1571379304
commit
cc022a68f4
|
@ -2355,7 +2355,7 @@ static int s3fs_write(const char* _path, const char* buf, size_t size, off_t off
|
|||
|
||||
if(max_dirty_data != -1 && ent->BytesModified() >= max_dirty_data){
|
||||
int flushres;
|
||||
if(0 != (flushres = ent->RowFlush(autoent.GetPseudoFd(), path, true))){
|
||||
if(0 != (flushres = ent->RowFlush(static_cast<int>(fi->fh), path, true))){
|
||||
S3FS_PRN_ERR("could not upload file(%s): result=%d", path, flushres);
|
||||
StatCache::getStatCacheData()->DelStat(path);
|
||||
return flushres;
|
||||
|
|
Loading…
Reference in New Issue
Block a user