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
fix(filer.sync): offset may be set to 0 (#3451)
qzh7fcfaf7bc9bb
diff --git a/weed/command/filer_sync.go b/weed/command/filer_sync.goindex 5c085947ae..d6f1d63d84 100644--- a/weed/command/filer_sync.go+++ b/weed/command/filer_sync.go@@ -259,6 +259,9 @@ func doSubscribeFilerMetaChanges(clientId int32, clientEpoch int32, grpcDialOptiprocessor.AddSyncJob(resp)return nil}, 3*time.Second, func(counter int64, lastTsNs int64) error {+ if processor.processedTsWatermark == 0 {+ return nil+ }// use processor.processedTsWatermark instead of the lastTsNs from the most recent jobnow := time.Now().UnixNano()glog.V(0).Infof("sync %s to %s progressed to %v %0.2f/sec", sourceFiler, targetFiler, time.Unix(0, processor.processedTsWatermark), float64(counter)/(float64(now-lastLogTsNs)/1e9))