diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2021-06-15 10:41:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-15 10:41:16 -0700 |
| commit | cd59573dd3cdb797783091bae1c6d4464e3c423c (patch) | |
| tree | 2e894d711e7bff2e7e81043f2a00e88c34b685dd /weed/filer/mongodb/mongodb_store.go | |
| parent | ebe971da2e12bc155819ba1e60f720513d0cfc20 (diff) | |
| parent | 6aa1a56ec87ca63f7a072eb6c9599e06fbb5ca9a (diff) | |
| download | seaweedfs-cd59573dd3cdb797783091bae1c6d4464e3c423c.tar.xz seaweedfs-cd59573dd3cdb797783091bae1c6d4464e3c423c.zip | |
Merge pull request #2128 from kmlebedev/do_small_delete_transactions
Diffstat (limited to 'weed/filer/mongodb/mongodb_store.go')
| -rw-r--r-- | weed/filer/mongodb/mongodb_store.go | 2 |
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) |
