filer: clear the tombstone rebuild gate before closing it (#13488)

A lazy read woken by the closed channel could still load the old gate
pointer, which made TestRebuildRemoteDeletionTombstones_EmptyLogReleasesGate
fail on Test 32-bit.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Chris LuandClaude Opus 5.5 authored and GitHub committed 2026-12-05 22:11:30 -08:00
1 parent 687c2844c3
commit 6820fdafea
1 file changed
+1 -1
+1 -1
View File
@@ -487,8 +487,8 @@ func (f *Filer) rebuildRemoteDeletionTombstones(ctx context.Context, mounts []ut
ctx = context.WithValue(ctx, lazyFetchContextKey{}, true)
startTsNs := f.remoteDeletionRebuildStartTsNs(ctx, mounts)
openGate := func() {
close(done)
f.remoteTombstonesDone.Store(nil)
close(done)
}
// Deletes made after startup are recorded through the live delete and
// event paths, so replay can only be missing deletes committed before