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
  • Loading branch information
caoxianfei1 committed Nov 17, 2023
1 parent 095006a commit 76bb509
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 76bb509

Please sign in to comment.