Skip to content

Commit

Permalink
[fix] fix the error that modify diskTrimCheckIntervalSec on the fly
Browse files Browse the repository at this point in the history
Signed-off-by: caoxianfei1 <caoxianfei@corp.netease.com>
  • Loading branch information
caoxianfei1 committed Nov 17, 2023
1 parent 095006a commit 4e457ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions curvefs/src/client/s3/disk_cache_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ void DiskCacheManager::TrimCache() {
cacheWriteFullDir = GetCacheWriteFullDir();
while (true) {
UpdateDiskFsUsedRatio();
waitIntervalSec_.Init(FLAGS_diskTrimCheckIntervalSec * 1000);
waitIntervalSec_.WaitForNextExcution();
if (!isRunning_) {
LOG(INFO) << "trim thread end.";
Expand Down

0 comments on commit 4e457ee

Please sign in to comment.