Browse Source

small refactoring

pull/926/head
Chris Lu 6 years ago
parent
commit
0e33272f56
  1. 2
      weed/server/volume_grpc_replicate.go
  2. 4
      weed/storage/volume.go

2
weed/server/volume_grpc_replicate.go

@ -153,7 +153,7 @@ func (vs *VolumeServer) ReadVolumeFileStatus(ctx context.Context, req *volume_se
resp.IdxFileSize = v.IndexFileSize()
resp.DatFileTimestamp = v.LastModifiedTime()
resp.IdxFileTimestamp = v.LastModifiedTime()
resp.FileCount = uint64(v.FileCount())
resp.FileCount = v.FileCount()
return resp, nil
}

4
weed/storage/volume.go

@ -94,8 +94,8 @@ func (v *Volume)LastModifiedTime() uint64 {
return v.lastModifiedTime
}
func (v *Volume)FileCount() uint {
return uint(v.nm.FileCount())
func (v *Volume)FileCount() uint64 {
return uint64(v.nm.FileCount())
}
// Close cleanly shuts down this volume

Loading…
Cancel
Save