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

Fix temporary contents DB being left behind after publishing #544

Merged
merged 1 commit into from
Apr 10, 2017

Conversation

smira
Copy link
Contributor

@smira smira commented Apr 10, 2017

Description of the Change

NB: Go defer order execution is reverse to the order defer statements
are executed.

So before the change, Drop() was called before Close(), which was no-op.

Change that to explicit order in single func, print errors if they happen.

Fixes #543

Checklist

  • unit-test added (if change is algorithm)
  • functional test added/updated (if change is functional)
  • man page updated (if applicable)
  • bash completion updated (if applicable)
  • documentation updated
  • author name in AUTHORS

NB: Go `defer` order execution is reverse to the order `defer` statements
are executed.

So before the change, `Drop()` was called before `Close()`, which was no-op.

Change that to explicit order in single func, print errors if they happen.
@smira smira merged commit ac475c0 into master Apr 10, 2017
@smira smira deleted the 543-tmp-dirs-leftover branch April 10, 2017 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant