mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
remove logs
This commit is contained in:
parent
b2a148cb4c
commit
86ce69f709
|
@ -2,7 +2,6 @@ package filer
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/chrislusf/seaweedfs/weed/glog"
|
|
||||||
"github.com/chrislusf/seaweedfs/weed/util/chunk_cache"
|
"github.com/chrislusf/seaweedfs/weed/util/chunk_cache"
|
||||||
"github.com/chrislusf/seaweedfs/weed/util/mem"
|
"github.com/chrislusf/seaweedfs/weed/util/mem"
|
||||||
"github.com/chrislusf/seaweedfs/weed/wdclient"
|
"github.com/chrislusf/seaweedfs/weed/wdclient"
|
||||||
|
@ -52,7 +51,6 @@ func (rc *ReaderCache) MaybeCache(fileId string, cipherKey []byte, isGzipped boo
|
||||||
}
|
}
|
||||||
|
|
||||||
// if too many, delete one of them?
|
// if too many, delete one of them?
|
||||||
glog.V(0).Infof("downloader2 %d", len(rc.downloaders))
|
|
||||||
if len(rc.downloaders) >= rc.limit {
|
if len(rc.downloaders) >= rc.limit {
|
||||||
oldestFid, oldestTime := "", time.Now()
|
oldestFid, oldestTime := "", time.Now()
|
||||||
for fid, downloader := range rc.downloaders {
|
for fid, downloader := range rc.downloaders {
|
||||||
|
@ -94,7 +92,6 @@ func (rc *ReaderCache) ReadChunkAt(buffer []byte, fileId string, cipherKey []byt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
glog.V(0).Infof("downloader1 %d", len(rc.downloaders))
|
|
||||||
if len(rc.downloaders) >= rc.limit {
|
if len(rc.downloaders) >= rc.limit {
|
||||||
oldestFid, oldestTime := "", time.Now()
|
oldestFid, oldestTime := "", time.Now()
|
||||||
for fid, downloader := range rc.downloaders {
|
for fid, downloader := range rc.downloaders {
|
||||||
|
|
Loading…
Reference in a new issue