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.
This commit is contained in:
Nia Weiss 2021-05-24 12:24:00 -04:00
parent 576c2d9efc
commit bfe2383f65
No known key found for this signature in database
GPG key ID: 895E83409BFDA1BB

View file

@ -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.