mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-04-30 17:47:48 +08:00
23 lines
527 B
Go
23 lines
527 B
Go
![]() |
package weed_server
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/chrislusf/seaweedfs/weed/glog"
|
||
|
"github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb"
|
||
|
)
|
||
|
|
||
|
func (vs *VolumeServer) DeleteCollection(ctx context.Context, req *volume_server_pb.DeleteCollectionRequest) (*volume_server_pb.DeleteCollectionResponse, error) {
|
||
|
|
||
|
resp := &volume_server_pb.DeleteCollectionResponse{}
|
||
|
|
||
|
err := vs.store.DeleteCollection(req.Collection)
|
||
|
|
||
|
if err != nil {
|
||
|
glog.V(3).Infof("delete collection %s: %v", req.Collection, err)
|
||
|
}
|
||
|
|
||
|
return resp, err
|
||
|
|
||
|
}
|