From faddb4900f039abb50dd88d0c0808c32f88aab84 Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Wed, 29 Jun 2022 14:04:11 +0000 Subject: [PATCH] Merged the code corresponding to the mknod fix(f11eb7d) --- src/fdcache_entity.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fdcache_entity.cpp b/src/fdcache_entity.cpp index 33cb0cd..18c6275 100644 --- a/src/fdcache_entity.cpp +++ b/src/fdcache_entity.cpp @@ -1847,7 +1847,7 @@ int FdEntity::RowFlushStreamMultipart(PseudoFdInfo* pseudo_obj, const char* tpat } // Clear the dirty flag, because the meta data is updated. - is_meta_pending = false; + pending_status = NO_UPDATE_PENDING; } // @@ -1900,8 +1900,8 @@ int FdEntity::RowFlushStreamMultipart(PseudoFdInfo* pseudo_obj, const char* tpat pseudo_obj->ClearUntreated(); pseudo_obj->ClearUploadInfo(); // clear multipart upload info - // put pending headers - if(0 != (result = UploadPendingMeta())){ + // put pending headers or create new file + if(0 != (result = UploadPending(-1))){ return result; } } @@ -2335,7 +2335,7 @@ ssize_t FdEntity::WriteStreamUpload(PseudoFdInfo* pseudo_obj, const char* bytes, if(!isuploading && pseudo_obj->IsUploading()){ // Clear the dirty flag, because the meta data is updated. - is_meta_pending = false; + pending_status = NO_UPDATE_PENDING; } return wsize;