aboutsummaryrefslogtreecommitdiff
path: root/weed/filer2/filechunks.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-05-16 00:08:44 -0700
committerChris Lu <chris.lu@gmail.com>2018-05-16 00:08:44 -0700
commitb303a02461a009298e27f7b9b4f8ae68c8f44f21 (patch)
treebc6a6e6415311c0fd31626fc7abe64d807c15f00 /weed/filer2/filechunks.go
parentc7a71d35b0f4c94361f227396e12412e4333a2ba (diff)
downloadseaweedfs-b303a02461a009298e27f7b9b4f8ae68c8f44f21.tar.xz
seaweedfs-b303a02461a009298e27f7b9b4f8ae68c8f44f21.zip
cp file can work
1. consolidate to filer_pb.FileChunk 2. dir add file, mkdir 3. file flush, write updates having issue
Diffstat (limited to 'weed/filer2/filechunks.go')
-rw-r--r--weed/filer2/filechunks.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/filer2/filechunks.go b/weed/filer2/filechunks.go
index b2f05de3a..9ddbe236e 100644
--- a/weed/filer2/filechunks.go
+++ b/weed/filer2/filechunks.go
@@ -1,6 +1,8 @@
package filer2
-type Chunks []FileChunk
+import "github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
+
+type Chunks []*filer_pb.FileChunk
func (chunks Chunks) TotalSize() (size uint64) {
for _, c := range chunks {