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
filer store: mongodb deleting children
Chris Lu73087f59b1fd
diff --git a/weed/filer2/mongodb/mongodb_store.go b/weed/filer2/mongodb/mongodb_store.goindex 63a7a43e47..375a457a49 100644--- a/weed/filer2/mongodb/mongodb_store.go+++ b/weed/filer2/mongodb/mongodb_store.go@@ -159,7 +159,7 @@ func (store *MongodbStore) DeleteEntry(ctx context.Context, fullpath util.FullPafunc (store *MongodbStore) DeleteFolderChildren(ctx context.Context, fullpath util.FullPath) error {where := bson.M{"directory": fullpath}- _, err := store.connect.Database(store.database).Collection(store.collectionName).DeleteOne(ctx, where)+ _, err := store.connect.Database(store.database).Collection(store.collectionName).DeleteMany(ctx, where)if err != nil {return fmt.Errorf("delete %s : %v", fullpath, err)}