diff options
| author | stlpmo <hq-STLPMO@chinaunicom.cn> | 2019-12-25 10:13:45 +0800 |
|---|---|---|
| committer | stlpmo <hq-STLPMO@chinaunicom.cn> | 2019-12-25 10:13:45 +0800 |
| commit | f3de4b6c188e5e450121b861ca74c5ab5cae8d59 (patch) | |
| tree | 3a6bff8455387398c08b9f3cdbf5bd27f1c806d3 | |
| parent | 3ebeae0c0ba94659bb39e055ae0278db5bb825f1 (diff) | |
| download | seaweedfs-f3de4b6c188e5e450121b861ca74c5ab5cae8d59.tar.xz seaweedfs-f3de4b6c188e5e450121b861ca74c5ab5cae8d59.zip | |
remove the redundant type conversion
| -rw-r--r-- | weed/storage/volume.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/volume.go b/weed/storage/volume.go index eaeed4e77..0414fa006 100644 --- a/weed/storage/volume.go +++ b/weed/storage/volume.go @@ -208,8 +208,8 @@ func (v *Volume) ToVolumeInformationMessage() *master_pb.VolumeInformationMessag Id: uint32(v.Id), Size: size, Collection: v.Collection, - FileCount: uint64(v.FileCount()), - DeleteCount: uint64(v.DeletedCount()), + FileCount: v.FileCount(), + DeleteCount: v.DeletedCount(), DeletedByteCount: v.DeletedSize(), ReadOnly: v.noWriteOrDelete, ReplicaPlacement: uint32(v.ReplicaPlacement.Byte()), |
