1919
}
1920
1922
>
backfillBranchToken,
1923
>
&persistencespb.HistoryBranch{
1924
>
TreeId: historyBranch.GetTreeId(),
1925
>
BranchId: branchID,
1926
>
Ancestors: ancestors,
1927
>
},
1928
>
runID,
1929
>
)
1930
>
if err != nil {
1931
return err
1932
}
1934
>
if err != nil {
1935
return err
1936
}
1937
1939
if err := r.persistenceRateLimiter.Wait(ctx, quotaRequest); err != nil {
1940
return err
1941
}
1942
}
1944
>
ShardID: r.shardContext.GetShardID(),
1945
>
IsNewBranch: prevBranchID != branchID,
1946
>
BranchToken: filteredHistoryBranch,
1947
>
History: historyBlob.rawHistory,
1948
>
PrevTransactionID: prevTxnID,
1949
>
TransactionID: txnID,
1950
>
NodeID: historyBlob.nodeID,
1951
>
Info: persistence.BuildHistoryGarbageCleanupInfo(
1952
>
namespaceID.String(),
1953
>
workflowID,
1954
>
runID,
1955
>
),
1956
>
})
1957
>
if err != nil {
1958
return err
1959
}
1961
>
prevBranchID = branchID
1962
}
1963