Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spanconfig/sqlwatcher: use the right mvcc timestamp
When unmarshaling descriptor protos into their specific types, we want to pass in the MVCC timestamp at which that descriptor was read. Given we receive these protos through the surrounding rangefeed, we want to use the rangefeed event timestamp. We we erroneously using the timestamp found on the rangefeed event's "previous value", which the API guarantees will be the zero timestamp. (This tripped us up before; we added some commentary + tests in cockroachdb#71225 for the rangefeed library to make this clearer.) Release note: None
- Loading branch information