diff options
| author | hilimd <68371223+hilimd@users.noreply.github.com> | 2020-10-22 15:50:49 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-22 15:50:49 +0800 |
| commit | cf7a1c722fa82fa78c546f68e4814fff7dc6d1e2 (patch) | |
| tree | 1470a0d158a31b516e02202c004dfb413a29e186 /weed/storage | |
| parent | ab1105c52472946efab9713bf15df45e14ff4514 (diff) | |
| parent | 5179e559f74cf7aed562f785e40bef46da3191bf (diff) | |
| download | seaweedfs-cf7a1c722fa82fa78c546f68e4814fff7dc6d1e2.tar.xz seaweedfs-cf7a1c722fa82fa78c546f68e4814fff7dc6d1e2.zip | |
Merge pull request #32 from chrislusf/master
sync
Diffstat (limited to 'weed/storage')
| -rw-r--r-- | weed/storage/erasure_coding/ec_volume.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/erasure_coding/ec_volume.go b/weed/storage/erasure_coding/ec_volume.go index 785f33ec4..71fe884df 100644 --- a/weed/storage/erasure_coding/ec_volume.go +++ b/weed/storage/erasure_coding/ec_volume.go @@ -145,9 +145,9 @@ func (ev *EcVolume) FileName() string { } -func (ev *EcVolume) ShardSize() int64 { +func (ev *EcVolume) ShardSize() uint64 { if len(ev.Shards) > 0 { - return ev.Shards[0].Size() + return uint64(ev.Shards[0].Size()) } return 0 } |
