From e31e0e1cccb4dc9dcf4ee0b34d98e1a3652f552d Mon Sep 17 00:00:00 2001 From: Gareth Date: Sun, 28 Sep 2025 04:40:03 -0700 Subject: [PATCH] chore: allow dump operations to run concurrently with other tasks --- internal/orchestrator/repo/repo.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/orchestrator/repo/repo.go b/internal/orchestrator/repo/repo.go index 27df7ae7..a509a3bc 100644 --- a/internal/orchestrator/repo/repo.go +++ b/internal/orchestrator/repo/repo.go @@ -337,13 +337,9 @@ func (r *RepoOrchestrator) Restore(ctx context.Context, snapshotId string, snaps } func (r *RepoOrchestrator) Dump(ctx context.Context, snapshotId string, snapshotPath string, output io.Writer) error { - r.mu.Lock() - defer r.mu.Unlock() ctx, flush := forwardResticLogs(ctx) defer flush() - r.logger(ctx).Debug("dump snapshot", zap.String("snapshot", snapshotId), zap.String("path", snapshotPath)) - return r.repo.Dump(ctx, snapshotId, snapshotPath, output) }