89
90
if pageToken.GetStartEventId()+1 == pageToken.GetEndEventId() {
91
>
// API is exclusive-exclusive. Return empty response here.
api.go
92
>
return &historyservice.GetWorkflowExecutionRawHistoryV2Response{
93
>
Response: &adminservice.GetWorkflowExecutionRawHistoryV2Response{
94
>
HistoryBatches: []*commonpb.DataBlob{},
95
>
NextPageToken: nil, // no further pagination
96
>
VersionHistory: targetVersionHistory,
97
>
},
98
>
}, nil
99
>
}
100
pageSize := int(req.GetMaximumPageSize())
101
shardID := common.WorkflowIDToHistoryShard(