Browse Source
fix: superblock write coordination (superMu) + remove debug logs
fix: superblock write coordination (superMu) + remove debug logs
Adds sync.Mutex (superMu) to BlockVol, shared between group commit's syncWithWALProgress() and flusher's updateSuperblockCheckpoint(). Both paths now serialize superblock mutation + persist, preventing WALTail/WALCheckpointLSN regression when flusher and group commit write the full superblock concurrently. persistSuperblock() also guarded for consistency. Removes temporary log.Printf lines in the open/recovery path that were added during BUG-RESTART-ZEROS investigation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>feature/sw-block
2 changed files with 19 additions and 4 deletions
Write
Preview
Loading…
Cancel
Save
Reference in new issue