aboutsummaryrefslogtreecommitdiff
path: root/weed/command/export.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-08-18 17:04:28 -0700
committerChris Lu <chris.lu@gmail.com>2020-08-18 17:04:28 -0700
commit6a92f0bc7a2cbf0828c720422220b600263b5217 (patch)
tree76088bd0bfb74ef03eeba87b46e48a5a0915ca9f /weed/command/export.go
parent618b2f6829af2bbf8cfed3a543ee13f675bd8efd (diff)
downloadseaweedfs-6a92f0bc7a2cbf0828c720422220b600263b5217.tar.xz
seaweedfs-6a92f0bc7a2cbf0828c720422220b600263b5217.zip
refactoring to typed Size
Go is amazing with refactoring!
Diffstat (limited to 'weed/command/export.go')
-rw-r--r--weed/command/export.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/command/export.go b/weed/command/export.go
index 411d231cb..0e2e7ccd9 100644
--- a/weed/command/export.go
+++ b/weed/command/export.go
@@ -72,9 +72,9 @@ var (
func printNeedle(vid needle.VolumeId, n *needle.Needle, version needle.Version, deleted bool) {
key := needle.NewFileIdFromNeedle(vid, n).String()
- size := n.DataSize
+ size := int32(n.DataSize)
if version == needle.Version1 {
- size = n.Size
+ size = int32(n.Size)
}
fmt.Printf("%s\t%s\t%d\t%t\t%s\t%s\t%s\t%t\n",
key,