Dmitrii Stepanov
6121b541b5
All checks were successful
ci/woodpecker/push/pre-commit Pipeline was successful
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
14 lines
480 B
Go
14 lines
480 B
Go
package tree
|
|
|
|
import (
|
|
"context"
|
|
|
|
cid "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/container/id"
|
|
)
|
|
|
|
// DropTree drops a tree from the database. If treeID is empty, all the trees are dropped.
|
|
func (s *Service) DropTree(ctx context.Context, cid cid.ID, treeID string) error {
|
|
// The only current use-case is a container removal, where all trees should be removed.
|
|
// Thus there is no need to replicate the operation on other node.
|
|
return s.forest.TreeDrop(ctx, cid, treeID)
|
|
}
|