Browse Source

Merge branch 'master' into msg_channel

pull/1318/head
Chris Lu 5 years ago
parent
commit
a8bc8eb351
  1. 2
      weed/filer2/mongodb/mongodb_store.go

2
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)
}

Loading…
Cancel
Save