// SplitQuery is exposing tabletserver.SqlQuery.SplitQuery func (sq *SqlQuery) SplitQuery(ctx context.Context, req *proto.SplitQueryRequest, reply *proto.SplitQueryResult) (err error) { defer sq.server.HandlePanic(&err) tErr := sq.server.SplitQuery(callinfo.RPCWrapCallInfo(ctx), req, reply) tabletserver.AddTabletErrorToSplitQueryResult(tErr, reply) if *tabletserver.RPCErrorOnlyInReply { return nil } return tErr }
// SplitQuery is exposing tabletserver.SqlQuery.SplitQuery func (sq *SqlQuery) SplitQuery(ctx context.Context, req *proto.SplitQueryRequest, reply *proto.SplitQueryResult) (err error) { defer sq.server.HandlePanic(&err) ctx = callerid.NewContext(ctx, callerid.GoRPCEffectiveCallerID(req.EffectiveCallerID), callerid.GoRPCImmediateCallerID(req.ImmediateCallerID), ) tErr := sq.server.SplitQuery(callinfo.RPCWrapCallInfo(ctx), proto.TargetToProto3(req.Target), req, reply) tabletserver.AddTabletErrorToSplitQueryResult(tErr, reply) return nil }