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 <[email protected]>
  • Loading branch information
caoxianfei1 committed Nov 20, 2023
1 parent e9f8f32 commit b6b06ef
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 b6b06ef

Please sign in to comment.