Skip to content

Commit

Permalink
optimization when the primary is in the metalist.
Browse files Browse the repository at this point in the history
  • Loading branch information
lengyuexuexuan committed Feb 19, 2024
1 parent ff2389a commit f149402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go-client/session/meta_call.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ func (c *metaCall) issueSingleMeta(ctx context.Context, curLeader int) bool {
})
curLeader = len(c.metas) - 1
c.metas[curLeader].logger.Printf("add forward address %s as meta server", addr)
resp, err = c.callFunc(ctx, c.metas[curLeader])
}
resp, err = c.callFunc(ctx, c.metas[curLeader])
}

if err != nil || resp.GetErr().Errno == base.ERR_FORWARD_TO_OTHERS.String() {
Expand Down

0 comments on commit f149402

Please sign in to comment.