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 sequence assignment error
Chris Lu6658d5de455a
diff --git a/go/sequence/sequence.go b/go/sequence/sequence.goindex 0237f1f801..3130740f1d 100644--- a/go/sequence/sequence.go+++ b/go/sequence/sequence.go@@ -62,7 +62,7 @@ func (m *SequencerImpl) NextFileId(count int) (uint64, int) {m.saveSequence()}m.fileIdCounter = m.fileIdCounter - uint64(count)- return m.FileIdSequence - m.fileIdCounter, count+ return m.FileIdSequence - m.fileIdCounter - uint64(count), count}func (m *SequencerImpl) saveSequence() {log.Println("Saving file id sequence", m.FileIdSequence, "to", path.Join(m.dir, m.fileName+".seq"))