814
ctx context.Context,
815
request *ReadHistoryBranchReverseRequest,
816
>
) ([]*commonpb.DataBlob, []int64, *historyPagingToken, int, error) {
history_manager.go
817
>
818
>
shardID := request.ShardID
819
>
branchToken := request.BranchToken
820
>
minNodeID := common.FirstEventID
821
>
maxNodeID := request.MaxEventID
822
>
if maxNodeID == common.EmptyEventID {
823
maxNodeID = common.EndEventID
825
>
maxNodeID++ // downstream code is exclusive on maxNodeID
826
>
}
827
828
>
branch, err := m.GetHistoryBranchUtil().ParseHistoryBranchInfo(branchToken)
history_manager.go
829
>
if err != nil {
830
>
return nil, nil, nil, 0, serviceerror.NewInvalidArgumentf("unable to parse branch token: %v", err)
831
>
}
832
treeID := branch.TreeId
833
branchID := branch.BranchId