Skip to content

Commit

Permalink
curvefs: should release s3adapter if we donot need compact
Browse files Browse the repository at this point in the history
Signed-off-by: h0hmj <[email protected]>
  • Loading branch information
h0hmj committed Jan 17, 2023
1 parent 47e86ad commit 367c0d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions curvefs/src/metaserver/s3compact_inode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ void CompactInodeJob::CompactChunks(const S3CompactTask& task) {
GetNeedCompact(inode.s3chunkinfomap(), inode.length(), chunkSize);
if (needCompact.empty()) {
VLOG(6) << "s3compact: no need to compact " << inode.inodeid();
opts_->s3adapterManager->ReleaseS3Adapter(s3adapterIndex);
return;
}

Expand Down

0 comments on commit 367c0d8

Please sign in to comment.