aboutsummaryrefslogtreecommitdiff
path: root/weed/replication
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-01-06 04:21:34 -0800
committerChris Lu <chris.lu@gmail.com>2021-01-06 04:22:00 -0800
commit2b7685464139e8fbfedbb357f72c4ff70bd869e1 (patch)
tree74ee5a6e9f15003bc659da47a8a806bcfdb6a416 /weed/replication
parent95ecf0c72f57f7b8cc96cb9099b79bc8ead9b80d (diff)
downloadseaweedfs-2b7685464139e8fbfedbb357f72c4ff70bd869e1.tar.xz
seaweedfs-2b7685464139e8fbfedbb357f72c4ff70bd869e1.zip
add "weed filer.cat" to read files directly from volume servers
Diffstat (limited to 'weed/replication')
-rw-r--r--weed/replication/sink/filersink/filer_sink.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/replication/sink/filersink/filer_sink.go b/weed/replication/sink/filersink/filer_sink.go
index a58c8f296..9c0e4176f 100644
--- a/weed/replication/sink/filersink/filer_sink.go
+++ b/weed/replication/sink/filersink/filer_sink.go
@@ -3,6 +3,7 @@ package filersink
import (
"context"
"fmt"
+ "github.com/chrislusf/seaweedfs/weed/wdclient"
"google.golang.org/grpc"
@@ -206,7 +207,7 @@ func (fs *FilerSink) UpdateEntry(key string, oldEntry *filer_pb.Entry, newParent
})
}
-func compareChunks(lookupFileIdFn filer.LookupFileIdFunctionType, oldEntry, newEntry *filer_pb.Entry) (deletedChunks, newChunks []*filer_pb.FileChunk, err error) {
+func compareChunks(lookupFileIdFn wdclient.LookupFileIdFunctionType, oldEntry, newEntry *filer_pb.Entry) (deletedChunks, newChunks []*filer_pb.FileChunk, err error) {
aData, aMeta, aErr := filer.ResolveChunkManifest(lookupFileIdFn, oldEntry.Chunks)
if aErr != nil {
return nil, nil, aErr