aboutsummaryrefslogtreecommitdiff
path: root/go/topology/topology_vacuum.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/topology/topology_vacuum.go')
-rw-r--r--go/topology/topology_vacuum.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/go/topology/topology_vacuum.go b/go/topology/topology_vacuum.go
index 48bc8311d..eeb4fef69 100644
--- a/go/topology/topology_vacuum.go
+++ b/go/topology/topology_vacuum.go
@@ -81,10 +81,10 @@ func batchVacuumVolumeCommit(vl *VolumeLayout, vid storage.VolumeId, locationlis
}
func (t *Topology) Vacuum(garbageThreshold string) int {
glog.V(0).Infoln("Start vacuum on demand")
- for _, col := range t.collectionMap.Items {
+ for _, col := range t.collectionMap.Items() {
c := col.(*Collection)
glog.V(0).Infoln("vacuum on collection:", c.Name)
- for _, vl := range c.storageType2VolumeLayout.Items {
+ for _, vl := range c.storageType2VolumeLayout.Items() {
if vl != nil {
volumeLayout := vl.(*VolumeLayout)
for vid, locationlist := range volumeLayout.vid2location {