Skip to content

Commit

Permalink
kvpb: mark subsume as isWrite
Browse files Browse the repository at this point in the history
Now that subsume is required to force flush all replication streams up
to the lease applied index it froze the range at, it also needs to be
marked as a write in order to pass through the replication code path,
which update the range controller force flush index.

Part of: #132614
Release note: None
  • Loading branch information
kvoli committed Dec 3, 2024
1 parent 4eff9bd commit ac150e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kv/kvpb/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -2113,7 +2113,7 @@ func (r *RefreshRangeRequest) flags() flag {
return isRead | isTxn | isRange | updatesTSCache
}

func (*SubsumeRequest) flags() flag { return isRead | isAlone | updatesTSCache }
func (*SubsumeRequest) flags() flag { return isWrite | isAlone | updatesTSCache }
func (*RangeStatsRequest) flags() flag { return isRead }
func (*QueryResolvedTimestampRequest) flags() flag {
return isRead | isRange | requiresClosedTSOlderThanStorageSnapshot
Expand Down

0 comments on commit ac150e4

Please sign in to comment.