Browse Source

remove the redundant type conversion

pull/1171/head
stlpmo 5 years ago
parent
commit
f3de4b6c18
  1. 4
      weed/storage/volume.go

4
weed/storage/volume.go

@ -208,8 +208,8 @@ func (v *Volume) ToVolumeInformationMessage() *master_pb.VolumeInformationMessag
Id: uint32(v.Id), Id: uint32(v.Id),
Size: size, Size: size,
Collection: v.Collection, Collection: v.Collection,
FileCount: uint64(v.FileCount()),
DeleteCount: uint64(v.DeletedCount()),
FileCount: v.FileCount(),
DeleteCount: v.DeletedCount(),
DeletedByteCount: v.DeletedSize(), DeletedByteCount: v.DeletedSize(),
ReadOnly: v.noWriteOrDelete, ReadOnly: v.noWriteOrDelete,
ReplicaPlacement: uint32(v.ReplicaPlacement.Byte()), ReplicaPlacement: uint32(v.ReplicaPlacement.Byte()),

Loading…
Cancel
Save