aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/mongodb/mongodb_store.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <lebedev_k@tochka.com>2021-06-15 18:12:39 +0500
committerKonstantin Lebedev <lebedev_k@tochka.com>2021-06-15 18:12:39 +0500
commit6aa1a56ec87ca63f7a072eb6c9599e06fbb5ca9a (patch)
tree2e894d711e7bff2e7e81043f2a00e88c34b685dd /weed/filer/mongodb/mongodb_store.go
parentebe971da2e12bc155819ba1e60f720513d0cfc20 (diff)
downloadseaweedfs-6aa1a56ec87ca63f7a072eb6c9599e06fbb5ca9a.tar.xz
seaweedfs-6aa1a56ec87ca63f7a072eb6c9599e06fbb5ca9a.zip
avoid crashes Galera Cluster
https://github.com/chrislusf/seaweedfs/issues/2125
Diffstat (limited to 'weed/filer/mongodb/mongodb_store.go')
-rw-r--r--weed/filer/mongodb/mongodb_store.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer/mongodb/mongodb_store.go b/weed/filer/mongodb/mongodb_store.go
index 1ef5056f4..5861d86b0 100644
--- a/weed/filer/mongodb/mongodb_store.go
+++ b/weed/filer/mongodb/mongodb_store.go
@@ -167,7 +167,7 @@ func (store *MongodbStore) DeleteEntry(ctx context.Context, fullpath util.FullPa
return nil
}
-func (store *MongodbStore) DeleteFolderChildren(ctx context.Context, fullpath util.FullPath) error {
+func (store *MongodbStore) DeleteFolderChildren(ctx context.Context, fullpath util.FullPath, limit int64) error {
where := bson.M{"directory": fullpath}
_, err := store.connect.Database(store.database).Collection(store.collectionName).DeleteMany(ctx, where)