mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-22 08:48:55 +00:00
Suppressed a lot of message output about cache cleanup
This commit is contained in:
parent
ee1d3a9057
commit
018ccb9a11
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user