From 5cbd31208579fc310f2d64ff4343a4690ca607d5 Mon Sep 17 00:00:00 2001 From: Michael Baird Date: Mon, 28 Aug 2017 09:23:06 -0500 Subject: [PATCH] Send delete view message to all nodes regardless if the receiving node contains that view. --- handler.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/handler.go b/handler.go index f876dc9b7..c7aa45ac1 100644 --- a/handler.go +++ b/handler.go @@ -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.