Skip to content

Commit

Permalink
fix_enable
Browse files Browse the repository at this point in the history
fix cpplint error

Signed-off-by: jbk <[email protected]>
  • Loading branch information
bit-dance committed Mar 30, 2023
1 parent 7f61105 commit cdec899
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion curvefs/src/client/fuse_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ CURVEFS_ERROR FuseClient::FuseOpInit(void *userdata,
}
inodeManager_->SetFsId(fsInfo_->fsid());
dentryManager_->SetFsId(fsInfo_->fsid());
enableSumInDir_ = fsInfo_->enablesumindir() && !FLAGS_enableCto;
enableSumInDir_ = fsInfo_->enablesumindir();
if (fsInfo_->has_recycletimehour()) {
enableSumInDir_ = enableSumInDir_ && (fsInfo_->recycletimehour() == 0);
}
Expand Down
3 changes: 3 additions & 0 deletions curvefs/src/mds/fs_info_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ void FsInfoWrapper::AddMountPoint(const Mountpoint& mp) {
*p = mp;

fsInfo_.set_mountnum(fsInfo_.mountnum() + 1);
if (fsInfo_.mountnum() > 1) {
fsInfo_.set_enablesumindir(false);
}
}

FSStatusCode FsInfoWrapper::DeleteMountPoint(const Mountpoint& mp) {
Expand Down

0 comments on commit cdec899

Please sign in to comment.