Skip to content

Commit

Permalink
Bring back branch token for branch deletion (#4521)
Browse files Browse the repository at this point in the history
  • Loading branch information
norberthu authored Jun 20, 2023
1 parent 7f064ea commit a62450a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/persistence/history_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ findDeleteRanges:
}

req := &InternalDeleteHistoryBranchRequest{
BranchToken: request.BranchToken,
BranchInfo: branch,
ShardID: request.ShardID,
BranchRanges: deleteRanges,
Expand Down
2 changes: 2 additions & 0 deletions common/persistence/persistenceInterface.go
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,8 @@ type (

// InternalDeleteHistoryBranchRequest is used to remove a history branch
InternalDeleteHistoryBranchRequest struct {
// The raw branch token
BranchToken []byte
// The branch
BranchInfo *persistencespb.HistoryBranch
// Used in sharded data stores to identify which shard to use
Expand Down

0 comments on commit a62450a

Please sign in to comment.