82
history []*persistencespb.VersionedTransition,
83
refVersionedTransition *persistencespb.VersionedTransition,
85
>
if len(history) == 0 {
86
return serviceerror.NewInternal("state has empty transition history")
87
}
88
>
idx, minTransitionCount, maxTransitionCount := transitionHistoryRangeForVersion(history, refVersionedTransition.NamespaceFailoverVersion)
transition_history.go
89
>
if idx == -1 {
90
lastItem := history[len(history)-1]
91
if lastItem.NamespaceFailoverVersion < refVersionedTransition.NamespaceFailoverVersion {