Browse Source

clean up

pull/1255/head
Chris Lu 5 years ago
parent
commit
2f5ed29c37
  1. 1
      weed/filer2/stream.go
  2. 3
      weed/filesys/dir_rename.go

1
weed/filer2/stream.go

@ -108,7 +108,6 @@ func (c *ChunkStreamReader) Read(p []byte) (n int, err error) {
return 0, io.EOF return 0, io.EOF
} }
chunkView := c.chunkViews[c.chunkIndex] chunkView := c.chunkViews[c.chunkIndex]
println("fetch1")
c.fetchChunkToBuffer(chunkView) c.fetchChunkToBuffer(chunkView)
c.chunkIndex++ c.chunkIndex++
} }

3
weed/filesys/dir_rename.go

@ -2,7 +2,6 @@ package filesys
import ( import (
"context" "context"
"fmt"
"github.com/chrislusf/seaweedfs/weed/glog" "github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb" "github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
@ -43,7 +42,7 @@ func (dir *Dir) Rename(ctx context.Context, req *fuse.RenameRequest, newDirector
dir.wfs.cacheDelete(newPath) dir.wfs.cacheDelete(newPath)
dir.wfs.cacheDelete(oldPath) dir.wfs.cacheDelete(oldPath)
fmt.Printf("rename path: %v => %v\n", oldPath, newPath)
// fmt.Printf("rename path: %v => %v\n", oldPath, newPath)
dir.wfs.fsNodeCache.Move(oldPath, newPath) dir.wfs.fsNodeCache.Move(oldPath, newPath)
} }

Loading…
Cancel
Save