Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

small refactoring

Chris Lu0e33272f5694
diff --git a/weed/server/volume_grpc_replicate.go b/weed/server/volume_grpc_replicate.go
index c641755d03..ae720144e0 100644
--- a/weed/server/volume_grpc_replicate.go
+++ b/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
}
diff --git a/weed/storage/volume.go b/weed/storage/volume.go
index 280963c2cc..572040d619 100644
--- a/weed/storage/volume.go
+++ b/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