Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
39145: storage: add empty DeprecatedTxnSpanGCThreshold to snapshot when key missing r=nvanbenschoten a=nvanbenschoten Fixes cockroachdb#39138. This was missed in cockroachdb#39003. v19.1 nodes populate their ReplicaState with an empty TxnSpanGCThreshold when the key is missing, not a nil TxnSpanGCThreshold. See https://github.com/cockroachdb/cockroach/blob/b8554ec29fd1620c0e6af9544d678db57d251f4c/pkg/storage/stateloader/stateloader.go#L474-L482 We need to do the same to avoid an assertion failure after a snapshot. Release note: None Co-authored-by: Nathan VanBenschoten <[email protected]>
- Loading branch information