mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-22 22:11:39 +02:00
add IsResourceHeavy() to command interface
This commit is contained in:
1 parent
dad3a26fb6
commit
701abbb9df
73 files changed
+295
-2
No files matched your search
@@ -48,6 +48,10 @@ func (c *commandVolumeCheckDisk) Help() string {
|
||||
`
|
||||
}
|
||||
|
||||
func (c *commandVolumeCheckDisk) IsResourceHeavy() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (c *commandVolumeCheckDisk) getVolumeStatusFileCount(vid uint32, dn *master_pb.DataNodeInfo) (totalFileCount, deletedFileCount uint64) {
|
||||
err := operation.WithVolumeServerClient(false, pb.NewServerAddressWithGrpcPort(dn.Id, int(dn.GrpcPort)), c.env.option.GrpcDialOption, func(volumeServerClient volume_server_pb.VolumeServerClient) error {
|
||||
resp, reqErr := volumeServerClient.VolumeStatus(context.Background(), &volume_server_pb.VolumeStatusRequest{
|
||||
|
||||
Reference in new issue
Block a user