Browse Source

do not forget to vacuum if cluster changes

pull/302/head
Chris Lu 9 years ago
parent
commit
3626ec5cf7
  1. 2
      go/topology/topology_event_handling.go

2
go/topology/topology_event_handling.go

@ -20,8 +20,8 @@ func (t *Topology) StartRefreshWritableVolumes(garbageThreshold string) {
}()
go func(garbageThreshold string) {
c := time.Tick(15 * time.Minute)
if t.IsLeader() {
for _ = range c {
if t.IsLeader() {
t.Vacuum(garbageThreshold)
}
}

Loading…
Cancel
Save