From bfe2383f651868beaeb861cb35547ac7b73b83fe Mon Sep 17 00:00:00 2001 From: Nia Weiss Date: Mon, 24 May 2021 12:24:00 -0400 Subject: [PATCH] correct handling of field translate data fetch in get translate data endpoint After retrieving field translation, this attempted to fetch index translation which didn't work because this is not an index translation request. --- http/handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/http/handler.go b/http/handler.go index f43a0f000..309bf1cde 100644 --- a/http/handler.go +++ b/http/handler.go @@ -1978,6 +1978,7 @@ func (h *Handler) handleGetTranslateData(w http.ResponseWriter, r *http.Request) if _, err := p.WriteTo(w); err != nil { h.logger.Errorf("error streaming translation data: %s", err) } + return } // Otherwise read partition parameter for index translation copy.