You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
527 B

  1. package weed_server
  2. import (
  3. "context"
  4. "github.com/chrislusf/seaweedfs/weed/glog"
  5. "github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb"
  6. )
  7. func (vs *VolumeServer) DeleteCollection(ctx context.Context, req *volume_server_pb.DeleteCollectionRequest) (*volume_server_pb.DeleteCollectionResponse, error) {
  8. resp := &volume_server_pb.DeleteCollectionResponse{}
  9. err := vs.store.DeleteCollection(req.Collection)
  10. if err != nil {
  11. glog.V(3).Infof("delete collection %s: %v", req.Collection, err)
  12. }
  13. return resp, err
  14. }