mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
filer: run the expired entry sweep in the background
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8d60f3bde9
commit
d0420bcae0
1 file changed
+1
@@ -345,6 +345,7 @@ func (f *Filer) AggregateFromPeers(self pb.ServerAddress, existingNodes []*maste
|
||||
f.EmptyFolderCleaner = empty_folder_cleanup.NewEmptyFolderCleaner(f, f.Dlm.LockRing, self, f.DirBucketsPath, f.EmptyFolderCleanupDelay)
|
||||
|
||||
f.MetaAggregator = NewMetaAggregator(f, self, f.GrpcDialOption)
|
||||
go f.loopSweepingExpiredEntries(self)
|
||||
// The ring starts empty while peer history sits on disk: mark the pre-startFrom
|
||||
// range evicted so a cursor there reads disk, not the ring's earliest entry.
|
||||
f.MetaAggregator.MetaLogBuffer.MarkEvictedThrough(startFrom.UnixNano())
|
||||
|
||||
Reference in new issue
Block a user