Skip to content

Prevent double index lookup in restic cat#2701

Closed
greatroar wants to merge 1 commit intorestic:masterfrom
greatroar:loadblob-notfound
Closed

Prevent double index lookup in restic cat#2701
greatroar wants to merge 1 commit intorestic:masterfrom
greatroar:loadblob-notfound

Conversation

@greatroar
Copy link
Copy Markdown
Contributor

@greatroar greatroar commented Apr 22, 2020

What is the purpose of this change? What does it change?

restic cat has to do two Lookups to find a blob. This PR introduces an error type for LoadBlob to signal that a blob is not found in the index, so that cat can check for this.

Was the change discussed in an issue or in the forum before?

In a comment on #2640.

Checklist

  • I have read the Contribution Guidelines
  • I have enabled maintainer edits for this PR
  • I have added tests for all changes in this PR
  • I have added documentation for the changes (in the manual)
  • There's a new file in changelog/unreleased/ that describes the changes for our users (template here)
  • I have run gofmt on the code in all commits
  • All commit messages are formatted in the same style as the other commits in the repo
  • I'm done, this Pull Request is ready for review

@greatroar greatroar marked this pull request as draft April 23, 2020 11:30
@greatroar greatroar marked this pull request as ready for review April 24, 2020 12:37
@greatroar greatroar mentioned this pull request Apr 29, 2020
5 tasks
@greatroar greatroar mentioned this pull request Jun 28, 2020
7 tasks
@MichaelEischer
Copy link
Copy Markdown
Member

Closing this as it's replaced by #2789 and, in hindsight, the duplicate index lookup inside cat is not worth the additional complexity.

@greatroar greatroar deleted the loadblob-notfound branch July 25, 2020 19:40
@greatroar
Copy link
Copy Markdown
Contributor Author

Fair enough.

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.

2 participants