diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-05-07 03:18:24 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-05-07 03:18:24 -0700 |
| commit | a8bc8eb351743ffa5032f1c65b8997b4636d67f2 (patch) | |
| tree | 52d7479101c1819491369cac9e90078c48067558 /weed/filer2/mongodb/mongodb_store.go | |
| parent | be1d9f324fc6160dae1c848913b586b9b6657029 (diff) | |
| parent | 73087f59b1fd0cee675344a58445453744ff3d41 (diff) | |
| download | seaweedfs-a8bc8eb351743ffa5032f1c65b8997b4636d67f2.tar.xz seaweedfs-a8bc8eb351743ffa5032f1c65b8997b4636d67f2.zip | |
Merge branch 'master' into msg_channel
Diffstat (limited to 'weed/filer2/mongodb/mongodb_store.go')
| -rw-r--r-- | weed/filer2/mongodb/mongodb_store.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer2/mongodb/mongodb_store.go b/weed/filer2/mongodb/mongodb_store.go index 63a7a43e4..375a457a4 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.FullPa func (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) } |
