Commit a988bb1
[BugFix] review: skip redundant SCHEMA_{id} write on replay; note orphan historical entry GC
Two review follow-ups on apply_add_index STEP 4:
- Gate create_schema_file on the schema id actually changing in this apply, so
re-applying the same OpAddIndex (metadata replay on restart) does not repeat
the remote object-store write. First apply behavior is unchanged.
- Document that a fully-repointed old_schema_id can leave its
historical_schemas entry unreferenced, and that apply_opcompaction's
historical_schemas GC reclaims it on the next compaction.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BNsDjnXjbty1eDHzZnFAEQ
Signed-off-by: meegoo <meegoo.sr@gmail.com>1 parent c54a9d7 commit a988bb1
1 file changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
380 | 383 | | |
381 | 384 | | |
382 | 385 | | |
| |||
388 | 391 | | |
389 | 392 | | |
390 | 393 | | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
396 | 403 | | |
397 | 404 | | |
398 | 405 | | |
| |||
0 commit comments