Browse Source
Merge pull request #1171 from stlpmo-jn/redundant_type_conversion
remove the redundant type conversion
pull/1172/head
Chris Lu
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
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()), |
|
|
|