Commit 455ad39
committed
admin: drop migration side-effect from describe + tighten list doc
Two findings from Gemini's third review pass on PR #633.
- adapter/dynamodb_admin.go: AdminDescribeTable used to invoke
ensureLegacyTableMigration on every call, which writes to the
cluster (Raft-coordinated key-encoding migration) as a side
effect of a read-only dashboard endpoint. Drop the call. The
admin describe is now strictly a snapshot read; legacy-format
tables migrate lazily on the next SigV4 read or write of the
same table, which is the existing behaviour for everything else
that touches that path.
- internal/admin/dynamo_handler.go: strengthen the handleList
doc comment to spell out the worst-case memory bound (255 B
per name × 10k tables ≈ 2.5 MiB) and to call out that this
matches the SigV4 listTables path which has shipped fine.
Streaming the metadata scan is a separate adapter-level
refactor — bolting one on top of the materialised slice would
be cosmetic.1 parent b2dec7a commit 455ad39
2 files changed
Lines changed: 28 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
41 | 52 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 53 | | |
46 | 54 | | |
47 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
145 | 151 | | |
146 | 152 | | |
147 | 153 | | |
| |||
0 commit comments