Skip to content

Commit

Permalink
fix unit test error in chunkserver_clone_recover.cpp
Browse files Browse the repository at this point in the history
new clone and snapshot write will return success
fix unit test to compatiable with the old clone and snapshot version
fix statics for the chunk file count

add snapshot and clone support for the old version below release1.5
  • Loading branch information
thincat75 authored and xu-chaojie committed Nov 23, 2023
1 parent eebd988 commit 2fc6702
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/chunkserver/datastore/chunkserver_chunkfile_v2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,6 @@ CSChunkFile_V2::CSChunkFile_V2(std::shared_ptr<LocalFileSystem> lfs,
}

CSChunkFile_V2::~CSChunkFile_V2() {
if (fd_ >= 0) {
lfs_->Close(fd_);
}

if (metric_ != nullptr) {
metric_->chunkFileCount << -1;
if (isCloneChunk_) {
metric_->cloneChunkCount << -1;
}
}
}

CSErrorCode CSChunkFile_V2::Open(bool createFile) {
Expand Down

0 comments on commit 2fc6702

Please sign in to comment.