diff options
| author | Chris Lu <chris.lu@gmail.com> | 2017-08-29 23:59:53 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2017-08-29 23:59:53 -0700 |
| commit | 58344980e45fb3a1421fe4f2368e95c08b8b18df (patch) | |
| tree | 58624f613fcd389bf40b782d2f9e4a6153187bb8 /weed/server/volume_server.go | |
| parent | f7c22f0159b79d4f6d0a63df9597cfb1e9e6155d (diff) | |
| download | seaweedfs-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.go | 1 |
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)) |
