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
rename to LastTsNs
chrisluf8957b84c1eb
diff --git a/weed/util/log_buffer/log_buffer.go b/weed/util/log_buffer/log_buffer.goindex 64abc67ff8..4d393d88b8 100644--- a/weed/util/log_buffer/log_buffer.go+++ b/weed/util/log_buffer/log_buffer.go@@ -44,7 +44,7 @@ type LogBuffer struct {notifyFn func()isStopping *atomic.BoolflushChan chan *dataToFlush- lastTsNs int64+ LastTsNs int64sync.RWMutex}@@ -89,12 +89,12 @@ func (logBuffer *LogBuffer) AddToBuffer(partitionKey, data []byte, processingTsN} else {ts = time.Unix(0, processingTsNs)}- if logBuffer.lastTsNs >= processingTsNs {+ if logBuffer.LastTsNs >= processingTsNs {// this is unlikely to happen, but just in case- processingTsNs = logBuffer.lastTsNs + 1+ processingTsNs = logBuffer.LastTsNs + 1ts = time.Unix(0, processingTsNs)}- logBuffer.lastTsNs = processingTsNs+ logBuffer.LastTsNs = processingTsNslogEntry := &filer_pb.LogEntry{TsNs: processingTsNs,PartitionKeyHash: util.HashToInt32(partitionKey),