mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
do not forget to vacuum if cluster changes
This commit is contained in:
parent
e8193ec201
commit
3626ec5cf7
|
@ -20,8 +20,8 @@ func (t *Topology) StartRefreshWritableVolumes(garbageThreshold string) {
|
||||||
}()
|
}()
|
||||||
go func(garbageThreshold string) {
|
go func(garbageThreshold string) {
|
||||||
c := time.Tick(15 * time.Minute)
|
c := time.Tick(15 * time.Minute)
|
||||||
if t.IsLeader() {
|
for _ = range c {
|
||||||
for _ = range c {
|
if t.IsLeader() {
|
||||||
t.Vacuum(garbageThreshold)
|
t.Vacuum(garbageThreshold)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue