SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
refactor
chrisluf6b92b856196
diff --git a/weed/command/filer_sync_jobs.go b/weed/command/filer_sync_jobs.goindex 0d4d83adb9..3e9bb9f378 100644--- a/weed/command/filer_sync_jobs.go+++ b/weed/command/filer_sync_jobs.go@@ -2,23 +2,22 @@ package commandimport ("github.com/seaweedfs/seaweedfs/weed/glog"+ "github.com/seaweedfs/seaweedfs/weed/pb""github.com/seaweedfs/seaweedfs/weed/pb/filer_pb""github.com/seaweedfs/seaweedfs/weed/util""sync")-type MetadataProcessFunc func(resp *filer_pb.SubscribeMetadataResponse) error-type MetadataProcessor struct {activeJobs map[int64]*filer_pb.SubscribeMetadataResponseactiveJobsLock sync.MutexactiveJobsCond *sync.CondconcurrencyLimit int- fn MetadataProcessFunc+ fn pb.ProcessMetadataFuncprocessedTsWatermark int64}-func NewMetadataProcessor(fn MetadataProcessFunc, concurrency int) *MetadataProcessor {+func NewMetadataProcessor(fn pb.ProcessMetadataFunc, concurrency int) *MetadataProcessor {t := &MetadataProcessor{fn: fn,activeJobs: make(map[int64]*filer_pb.SubscribeMetadataResponse),