mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-24 16:53:14 +08:00
refactor
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"github.com/seaweedfs/seaweedfs/weed/pb/master_pb"
|
||||
"math/rand/v2"
|
||||
"reflect"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@@ -29,6 +30,11 @@ type VolumeGrowRequest struct {
|
||||
Option *VolumeGrowOption
|
||||
Count uint32
|
||||
Force bool
|
||||
Reason string
|
||||
}
|
||||
|
||||
func (vg *VolumeGrowRequest) Equals(req *VolumeGrowRequest) bool {
|
||||
return reflect.DeepEqual(existingReq.Option, req.Option) && vg.Count == req.Count
|
||||
}
|
||||
|
||||
type volumeGrowthStrategy struct {
|
||||
|
||||
Reference in New Issue
Block a user