Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use random hashes for temp filenames #3012

Merged
merged 1 commit into from Apr 12, 2021

Conversation

marta-lokhova
Copy link
Contributor

Resolves #2976

This change improves the naming of local temp files during catchup and publish. Specifically, it avoids dependencies on node's config. These temp files are contained within the works that use it, and are not exposed outside. On retry, we re-use the same filename (which is what happens in master as well, although this is not critical for correctness).

Copy link
Contributor

@graydon graydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@graydon
Copy link
Contributor

graydon commented Apr 12, 2021

r+ e1177e6

@latobarita latobarita merged commit 249f5c4 into stellar:master Apr 12, 2021
@marta-lokhova marta-lokhova added this to In progress in v17.0.0 via automation Apr 13, 2021
@marta-lokhova marta-lokhova moved this from In progress to Done in v17.0.0 Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Catchup should sanitize archive names used in filenames
3 participants