Browse Source

issue 49: unwritable volume become writable after compacting

pull/2/head
Chris Lu 11 years ago
parent
commit
030905714b
  1. 6
      go/topology/topology_compact.go

6
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
}

Loading…
Cancel
Save