lengyuexuexuan commented on code in PR #1916:
URL:
https://github.com/apache/incubator-pegasus/pull/1916#discussion_r1511022847
##########
go-client/session/meta_call.go:
##########
@@ -133,3 +163,16 @@ func (c *metaCall) issueBackupMetas(ctx context.Context) {
}(i)
}
}
+
+func (c *metaCall) getMetaServiceForwardAddress(resp metaResponse)
*base.RPCAddress {
+ rep, ok := resp.(*replication.QueryCfgResponse)
+ if !ok || rep.GetErr().Errno != base.ERR_FORWARD_TO_OTHERS.String() {
+ return nil
+ } else if rep.GetPartitions() == nil || len(rep.GetPartitions()) == 0 {
+ return nil
+ } else {
+ return rep.Partitions[0].Primary
+
+ }
+
Review Comment:
> Remove the extra blank line.
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]