aboutsummaryrefslogtreecommitdiff
path: root/weed/server/volume_server.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2017-08-29 23:59:53 -0700
committerChris Lu <chris.lu@gmail.com>2017-08-29 23:59:53 -0700
commit58344980e45fb3a1421fe4f2368e95c08b8b18df (patch)
tree58624f613fcd389bf40b782d2f9e4a6153187bb8 /weed/server/volume_server.go
parentf7c22f0159b79d4f6d0a63df9597cfb1e9e6155d (diff)
downloadseaweedfs-58344980e45fb3a1421fe4f2368e95c08b8b18df.tar.xz
seaweedfs-58344980e45fb3a1421fe4f2368e95c08b8b18df.zip
preallocate disk space during compaction also, add cleanup for failed compaction
Diffstat (limited to 'weed/server/volume_server.go')
-rw-r--r--weed/server/volume_server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go
index cace8d181..b0620de0b 100644
--- a/weed/server/volume_server.go
+++ b/weed/server/volume_server.go
@@ -52,6 +52,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,
adminMux.HandleFunc("/admin/vacuum/check", vs.guard.WhiteList(vs.vacuumVolumeCheckHandler))
adminMux.HandleFunc("/admin/vacuum/compact", vs.guard.WhiteList(vs.vacuumVolumeCompactHandler))
adminMux.HandleFunc("/admin/vacuum/commit", vs.guard.WhiteList(vs.vacuumVolumeCommitHandler))
+ adminMux.HandleFunc("/admin/vacuum/cleanup", vs.guard.WhiteList(vs.vacuumVolumeCleanupHandler))
adminMux.HandleFunc("/admin/delete_collection", vs.guard.WhiteList(vs.deleteCollectionHandler))
adminMux.HandleFunc("/admin/sync/status", vs.guard.WhiteList(vs.getVolumeSyncStatusHandler))
adminMux.HandleFunc("/admin/sync/index", vs.guard.WhiteList(vs.getVolumeIndexContentHandler))