From e12aa7234991e35f01ce1c3f235076b81657cbc7 Mon Sep 17 00:00:00 2001 From: Matt Jaffee Date: Fri, 18 Dec 2020 10:15:11 -0600 Subject: [PATCH] fix comments --- http/client.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/http/client.go b/http/client.go index 15b1706f0..b8a490e68 100644 --- a/http/client.go +++ b/http/client.go @@ -165,8 +165,8 @@ func (c *InternalClient) CreateIndex(ctx context.Context, index string, opt pilo span, ctx := tracing.StartSpanFromContext(ctx, "InternalClient.CreateIndex") defer span.Finish() - // Get the coordinator node; all bits are sent to the - // primary translate store (i.e. coordinator). + // Get the coordinator node. Schema changes must go through + // coordinator to avoid weird race conditions. nodes, err := c.Nodes(ctx) if err != nil { return fmt.Errorf("getting nodes: %s", err) @@ -926,8 +926,8 @@ func (c *InternalClient) CreateFieldWithOptions(ctx context.Context, index, fiel return errors.Wrap(err, "marshaling") } - // Get the coordinator node; all bits are sent to the - // primary translate store (i.e. coordinator). + // Get the coordinator node. Schema changes must go through + // coordinator to avoid weird race conditions. nodes, err := c.Nodes(ctx) if err != nil { return fmt.Errorf("getting nodes: %s", err)