Skip to content

Commit

Permalink
delete temp export folder after completion of export
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaji-kharse committed Oct 29, 2024
1 parent f412efd commit 0068778
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions worker/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,9 @@ func (r *remoteExportStorage) FinishWriting(w *Writers) (ExportedFiles, error) {
return nil, err
}
}

if err = os.RemoveAll(r.les.destination); err != nil {
return nil, errors.Wrapf(err, "Error while deleting temporary export directory")
}
return files, nil
}

Expand Down Expand Up @@ -1057,7 +1059,6 @@ func ExportOverNetwork(ctx context.Context, input *pb.ExportRequest) (ExportedFi
}
allFiles = append(allFiles, pair.ExportedFiles...)
}

glog.Infof("Export at readTs %d DONE", readTs)
return allFiles, nil
}
Expand Down

0 comments on commit 0068778

Please sign in to comment.