forked from TrueCloudLab/frostfs-node
[#242] treesvc: Add tracing spans
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
d62c6e4ce6
commit
6121b541b5
13 changed files with 601 additions and 195 deletions
|
@ -7,8 +7,8 @@ import (
|
|||
)
|
||||
|
||||
// DropTree drops a tree from the database. If treeID is empty, all the trees are dropped.
|
||||
func (s *Service) DropTree(_ context.Context, cid cid.ID, treeID string) error {
|
||||
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(cid, treeID)
|
||||
return s.forest.TreeDrop(ctx, cid, treeID)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue