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
add capability to assign a batch of file ids
[email protected]bcffffbc5e0a
diff --git a/weed-fs/src/pkg/directory/volume_mapping.go b/weed-fs/src/pkg/directory/volume_mapping.goindex 947eb65e99..114f212e20 100644--- a/weed-fs/src/pkg/directory/volume_mapping.go+++ b/weed-fs/src/pkg/directory/volume_mapping.go@@ -92,12 +92,12 @@ func (m *Mapper) NextFileId(c string) (uint64,int) {}count = 1}+ m.sequenceLock.Lock()+ defer m.sequenceLock.Unlock()if m.fileIdCounter < count {- m.sequenceLock.Lock();m.fileIdCounter = FileIdSaveIntervalm.FileIdSequence += FileIdSaveIntervalm.saveSequence()- m.sequenceLock.Unlock();}m.fileIdCounter = m.fileIdCounter - countreturn m.FileIdSequence - m.fileIdCounter, int(count)