Commit d7e581e
committed
*: re-vendor kvproto at b41e863 (2026-06-22) and record the vendored revision
The vendored protos were an unrecorded late-2023/early-2024 vintage (errorpb
and pdpb untouched since #324, one hand-patched addition from #519). Nothing
recorded which kvproto revision they came from, and the staleness now blocks
real features.
Re-vendor everything at pingcap/kvproto b41e86365ce0 — the revision client-go
currently pins — and add proto/VERSION so the vintage is never again guesswork.
Regenerated with the existing tonic-build pipeline (21 files). One mechanical
source fix: pdpb.RequestHeader gained caller_component/caller_id, so the TSO
stream's header construction now defaults the new fields.
This commit is the re-vendor and nothing else. Newly available surface includes
KvFlush / KvBufferBatchGet (pipelined DML), HealthFeedback, and
pdpb.BatchScanRegions.
Two new protocol semantics become VISIBLE with the refresh —
errorpb.UndeterminedResult (an unknown raft apply outcome) and shared locks
(SharedLock / SharedPessimisticLock, whose real holders live in
shared_lock_infos). Handling them is deliberately left to follow-up PRs so this
one stays a pure re-vendor. Neither is a regression introduced here:
- UndeterminedResult falls through to the generic region-error arm, which
backs off and retries — the same default the follow-up keeps for every plan
that is not a commit point.
- A shared-lock wrapper carries no key bytes on the wire regardless of which
proto vintage parses it, so the keyspace truncation hazard predates this
commit; the refresh only makes the wrapper identifiable.
Tests: make check green; 67 lib tests; txn/raw/failpoint integration suites
green against a local api-v2 cluster.
Signed-off-by: Eduard R. <eduard@ralphovi.net>1 parent 2c0f2f3 commit d7e581e
59 files changed
Lines changed: 8931 additions & 4765 deletions
File tree
- proto
- include
- gogoproto
- src
- generated
- pd
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
12 | | - | |
13 | | - | |
14 | 16 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
26 | | - | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | | - | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | | - | |
45 | | - | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | | - | |
| |||
0 commit comments