mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-22 22:43:33 +08:00
better logging for volume growth
This commit is contained in:
@@ -51,6 +51,7 @@ func (ms *MasterServer) ProcessGrowRequest() {
|
||||
ms.volumeGrowthRequestChan <- &topology.VolumeGrowRequest{
|
||||
Option: vlc.ToGrowOption(),
|
||||
Count: vl.GetLastGrowCount(),
|
||||
Reason: "collection autogrow",
|
||||
}
|
||||
} else {
|
||||
for _, dc := range dcs {
|
||||
@@ -62,6 +63,7 @@ func (ms *MasterServer) ProcessGrowRequest() {
|
||||
Option: volumeGrowOption,
|
||||
Count: vl.GetLastGrowCount(),
|
||||
Force: true,
|
||||
Reason: "per-dc autogrow",
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -108,6 +110,7 @@ func (ms *MasterServer) ProcessGrowRequest() {
|
||||
|
||||
filter.Store(req, nil)
|
||||
// we have lock called inside vg
|
||||
glog.V(0).Infof("volume grow %+v", req)
|
||||
go func(req *topology.VolumeGrowRequest, vl *topology.VolumeLayout) {
|
||||
ms.DoAutomaticVolumeGrow(req)
|
||||
vl.DoneGrowRequest()
|
||||
|
Reference in New Issue
Block a user