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 building mongo index
chrisluc09100f92846
diff --git a/weed/filer/mongodb/mongodb_store.go b/weed/filer/mongodb/mongodb_store.goindex 49190058bc..8ebbc6ab0f 100644--- a/weed/filer/mongodb/mongodb_store.go+++ b/weed/filer/mongodb/mongodb_store.go@@ -10,7 +10,6 @@ import ("go.mongodb.org/mongo-driver/bson""go.mongodb.org/mongo-driver/mongo""go.mongodb.org/mongo-driver/mongo/options"- "go.mongodb.org/mongo-driver/x/bsonx""time")@@ -72,7 +71,7 @@ func (store *MongodbStore) indexUnique(c *mongo.Collection) error {*unique = trueindex := mongo.IndexModel{- Keys: bsonx.Doc{{Key: "directory", Value: bsonx.Int32(1)}, {Key: "name", Value: bsonx.Int32(1)}},+ Keys: bson.D{{Key: "directory", Value: int32(1)}, {Key: "name", Value: int32(1)}},Options: &options.IndexOptions{Unique: unique,},