Commit 12e4cff
committed
fix(cluster,native): minor correctness fixes in applier and plan builders
- `metadata_group/applier.rs`: remove stale doc comment that described
`apply_topology_change` as backward-compatible with old test wiring;
the field is simply optional.
- `plan_builder/graph.rs`: correct `clamped_depth` parameter from
`Option<u64>` to `Option<u32>` to match the wire field type.
- `plan_builder/vector.rs`: add explicit `u32` bounds check on
`vector_id` with a structured `BadRequest` error rather than silently
truncating the surrogate.1 parent bf16780 commit 12e4cff
3 files changed
Lines changed: 8 additions & 4 deletions
File tree
- nodedb-cluster/src/metadata_group
- nodedb/src/control/server/native/dispatch/plan_builder
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
| 117 | + | |
119 | 118 | | |
120 | 119 | | |
121 | 120 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
139 | 144 | | |
140 | 145 | | |
141 | 146 | | |
| |||
0 commit comments