Files
seaweedfs/seaweed-block/core/storage
pingqiuandClaude Opus 5.5 b06bf7dc45 storage: HEAD's remote_lsn never decreases
A cut whose LSN is below the base HEAD's remote_lsn is refused before any
upload (ErrChunkCaptureRefused with ErrChunkLSNBehind; the expected gen
pins that base HEAD), unless that HEAD belongs to a newer holder, which
fences as before. MemChunkRemote refuses a lowering CAS too (B9 W2
appendix, 2026-11-15 14:30Z).

Until LSN continuity across hosts exists, a fresh, migrated or forked
volume cannot cut or detach; the carry-forward must merge before or with
this check. Tests that model a host continuing from a seeded HEAD now
advance the local log to that HEAD's remote_lsn first, as the
carry-forward will.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 06:11:08 -08:00
..