Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage,util/hlc: convert hlc.Timestamp to proto3
Convert hlc.Timestamp to proto3 so that a logical component of 0 will not be encoded on the wire. This is complicated by needing to leave the "below raft" encoding for MVCCMetadata unchanged. Added LegacyTimestamp to accomplish this which is convertible to Timestamp but has the legacy encoding. Changed the MVCCMetadata timestamp fields to use LegacyTimestamp. Note that the timestamp in MVCCMetadata.Txn (type TxnMeta) does not need to change because we never encoding an MVCCMetadata with a non-nil Txn field below raft. Extended the TrackRaftProtos mechanism to verify that TxnMeta is never encoded blow raft.
- Loading branch information