aboutsummaryrefslogtreecommitdiff
path: root/weed/topology/topology.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/topology/topology.go')
-rw-r--r--weed/topology/topology.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/weed/topology/topology.go b/weed/topology/topology.go
index 6c6fc73a4..671cdf32c 100644
--- a/weed/topology/topology.go
+++ b/weed/topology/topology.go
@@ -35,6 +35,7 @@ type Topology struct {
volumeSizeLimit uint64
replicationAsMin bool
+ isDisableVacuum bool
Sequence sequence.Sequencer
@@ -338,3 +339,13 @@ func (t *Topology) DataNodeRegistration(dcName, rackName string, dn *DataNode) {
rack.LinkChildNode(dn)
glog.Infof("[%s] reLink To topo ", dn.Id())
}
+
+func (t *Topology) DisableVacuum() {
+ glog.V(0).Infof("DisableVacuum")
+ t.isDisableVacuum = true
+}
+
+func (t *Topology) EnableVacuum() {
+ glog.V(0).Infof("EnableVacuum")
+ t.isDisableVacuum = false
+}