tree: Add ApplyBatch method #1449

Merged
fyrchik merged 2 commits from dstepanov-yadro/frostfs-node:fix/tree_sync_race into master 2024-11-12 12:11:08 +00:00
Showing only changes of commit 743e960b3b - Show all commits

View file

@ -376,7 +376,7 @@ func (s *Service) syncLoop(ctx context.Context) {
return
case <-s.syncChan:
ctx, span := tracing.StartSpanFromContext(ctx, "TreeService.sync")
s.log.Debug(logs.TreeSyncingTrees)
s.log.Info(logs.TreeSyncingTrees)
start := time.Now()
@ -394,7 +394,7 @@ func (s *Service) syncLoop(ctx context.Context) {
s.removeContainers(ctx, newMap)
s.log.Debug(logs.TreeTreesHaveBeenSynchronized)
s.log.Info(logs.TreeTreesHaveBeenSynchronized)
s.metrics.AddSyncDuration(time.Since(start), true)
span.End()