Send delete view message to all nodes regardless if the receiving node contains that view.

This commit is contained in:
Michael Baird 2017-08-28 09:23:06 -05:00
parent 52428ee6ac
commit 5cbd312085

View file

@ -807,8 +807,11 @@ func (h *Handler) handleDeleteView(w http.ResponseWriter, r *http.Request) {
// Delete the view.
if err := f.DeleteView(viewName); err != nil {
http.Error(w, err.Error(), http.StatusBadRequest)
return
// Ingore this error becuase views do not exist on all nodes due to slice distribution.
if err != ErrInvalidView {
http.Error(w, err.Error(), http.StatusBadRequest)
return
}
}
// Send the delete view message to all nodes.