mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
small refactoring
This commit is contained in:
parent
cb2061f86a
commit
0e33272f56
|
@ -153,7 +153,7 @@ func (vs *VolumeServer) ReadVolumeFileStatus(ctx context.Context, req *volume_se
|
||||||
resp.IdxFileSize = v.IndexFileSize()
|
resp.IdxFileSize = v.IndexFileSize()
|
||||||
resp.DatFileTimestamp = v.LastModifiedTime()
|
resp.DatFileTimestamp = v.LastModifiedTime()
|
||||||
resp.IdxFileTimestamp = v.LastModifiedTime()
|
resp.IdxFileTimestamp = v.LastModifiedTime()
|
||||||
resp.FileCount = uint64(v.FileCount())
|
resp.FileCount = v.FileCount()
|
||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -94,8 +94,8 @@ func (v *Volume)LastModifiedTime() uint64 {
|
||||||
return v.lastModifiedTime
|
return v.lastModifiedTime
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *Volume)FileCount() uint {
|
func (v *Volume)FileCount() uint64 {
|
||||||
return uint(v.nm.FileCount())
|
return uint64(v.nm.FileCount())
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close cleanly shuts down this volume
|
// Close cleanly shuts down this volume
|
||||||
|
|
Loading…
Reference in a new issue