Fixed a bug that regular files could not be created by mknod

This commit is contained in:
Takeshi Nakatani
2022-06-19 06:02:23 +00:00
committed by Andrew Gaul
parent 73b49c1038
commit f11eb7d69b
3 changed files with 11 additions and 7 deletions

View File

@ -1545,7 +1545,7 @@ int FdEntity::RowFlushMultipart(PseudoFdInfo* pseudo_obj, const char* tpath)
S3FS_PRN_ERR("failed to truncate file(physical_fd=%d) to zero, but continue...", physical_fd);
}
// put pending headers or create new file
if(0 != (result = UploadPending())){
if(0 != (result = UploadPending(-1))){
return result;
}
}
@ -1673,7 +1673,7 @@ int FdEntity::RowFlushMixMultipart(PseudoFdInfo* pseudo_obj, const char* tpath)
S3FS_PRN_ERR("failed to truncate file(physical_fd=%d) to zero, but continue...", physical_fd);
}
// put pending headers or create new file
if(0 != (result = UploadPending())){
if(0 != (result = UploadPending(-1))){
return result;
}
}