mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
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:
1 parent
687c2844c3
commit
6820fdafea
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user