Suppressed a lot of message output about cache cleanup

This commit is contained in:
Takeshi Nakatani 2020-01-30 14:00:01 +00:00
parent ee1d3a9057
commit 018ccb9a11
2 changed files with 5 additions and 5 deletions

View File

@ -2732,7 +2732,7 @@ bool FdManager::ChangeEntityToTempPath(FdEntity* ent, const char* path)
void FdManager::CleanupCacheDir()
{
S3FS_PRN_INFO("cache cleanup requested");
//S3FS_PRN_DBG("cache cleanup requested");
if(!FdManager::IsCacheDir()){
return;
@ -2741,9 +2741,9 @@ void FdManager::CleanupCacheDir()
AutoLock auto_lock_no_wait(&FdManager::cache_cleanup_lock, AutoLock::NO_WAIT);
if(auto_lock_no_wait.isLockAcquired()){
S3FS_PRN_INFO("cache cleanup started");
//S3FS_PRN_DBG("cache cleanup started");
CleanupCacheDirInternal("");
S3FS_PRN_INFO("cache cleanup ended");
//S3FS_PRN_DBG("cache cleanup ended");
}else{
// wait for other thread to finish cache cleanup
AutoLock auto_lock(&FdManager::cache_cleanup_lock);

View File

@ -676,11 +676,11 @@ function test_clean_up_cache() {
describe "Test clean up cache"
dir="many_files"
count=256
count=25
mkdir -p $dir
for x in $(seq $count); do
dd if=/dev/urandom of=$dir/file-$x bs=1048576 count=1
dd if=/dev/urandom of=$dir/file-$x bs=10485760 count=1
done
file_cnt=$(ls $dir | wc -l)