diff options
| author | Chris Lu <chris.lu@gmail.com> | 2016-05-09 09:58:06 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2016-05-09 09:58:06 -0700 |
| commit | 3626ec5cf7ccc08a2771a600644655e0ff83e925 (patch) | |
| tree | 2bbaa52b38bf825c32b1f0fc4c65e16d519132bf /go | |
| parent | e8193ec201c9db3a7ff12418268b42be35cbc8fb (diff) | |
| download | seaweedfs-3626ec5cf7ccc08a2771a600644655e0ff83e925.tar.xz seaweedfs-3626ec5cf7ccc08a2771a600644655e0ff83e925.zip | |
do not forget to vacuum if cluster changes
Diffstat (limited to 'go')
| -rw-r--r-- | go/topology/topology_event_handling.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/go/topology/topology_event_handling.go b/go/topology/topology_event_handling.go index 5f5faf04e..3879fbaba 100644 --- a/go/topology/topology_event_handling.go +++ b/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 { + for _ = range c { + if t.IsLeader() { t.Vacuum(garbageThreshold) } } |
