From 030905714b2fb1bfa72f3f2770b9ce5e1b045c5d Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 16 Oct 2013 08:10:48 -0700 Subject: [PATCH] issue 49: unwritable volume become writable after compacting --- go/topology/topology_compact.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/go/topology/topology_compact.go b/go/topology/topology_compact.go index 6394c59c6..4ba77a4a5 100644 --- a/go/topology/topology_compact.go +++ b/go/topology/topology_compact.go @@ -72,9 +72,9 @@ func batchVacuumVolumeCommit(vl *VolumeLayout, vid storage.VolumeId, locationlis } else { glog.V(0).Infoln("Complete Commiting vacuum", vid, "on", dn.Url()) } - } - if isCommitSuccess { - vl.setVolumeWritable(vid) + if isCommitSuccess { + vl.SetVolumeAvailable(dn, vid) + } } return isCommitSuccess }