Add Lock() func parameter in RowFlush()

This commit is contained in:
Takeshi Nakatani 2019-07-15 01:52:29 +00:00
parent e936854493
commit f78bcc5229

View File

@ -1507,7 +1507,7 @@ int FdEntity::RowFlush(const char* tpath, bool force_sync)
if(ReserveDiskSpace(restsize)){
// enough disk space
// Load all uninitialized area
result = Load();
result = Load(/*start=*/ 0, /*size=*/ 0, /*lock_already_held=*/ true);
FdManager::FreeReservedDiskSpace(restsize);
if(0 != result){
S3FS_PRN_ERR("failed to upload all area(errno=%d)", result);