1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-02 23:26:42 +02:00

remove debug messages

fix https://github.com/chrislusf/seaweedfs/issues/2514
This commit is contained in:
chrislu 2021-12-16 00:58:15 -08:00
parent 8329cf86a7
commit 50ddd8c8e2

View file

@ -334,12 +334,12 @@ func (l *DiskLocation) Close() {
} }
func (l *DiskLocation) LocateVolume(vid needle.VolumeId) (os.DirEntry, bool) { func (l *DiskLocation) LocateVolume(vid needle.VolumeId) (os.DirEntry, bool) {
println("LocateVolume", vid, "on", l.Directory) // println("LocateVolume", vid, "on", l.Directory)
if dirEntries, err := os.ReadDir(l.Directory); err == nil { if dirEntries, err := os.ReadDir(l.Directory); err == nil {
for _, entry := range dirEntries { for _, entry := range dirEntries {
println("checking", entry.Name(), "...") // println("checking", entry.Name(), "...")
volId, _, err := volumeIdFromFileName(entry.Name()) volId, _, err := volumeIdFromFileName(entry.Name())
println("volId", volId, "err", err) // println("volId", volId, "err", err)
if vid == volId && err == nil { if vid == volId && err == nil {
return entry, true return entry, true
} }