Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
The
updater.rs
is currently using theblob_last_used_by
with the error case returning the missing entries which is a bd design:not_found
.Proposal
The following was done:
missing_blob_states
that provides what we are after.blobs_last_used_by
that was previously introduced, but keep it in thedb_storage.rs
.Possible criticism of the design:
blobs_last_used_by
but there was no use case and in particular, we could not use it for getting the missed blob ids.db_storage.rs
. Possibly we could remove it as well as other unused APIs.missing_blob_ids
does a single operation. We could split it into blocks and then use a stream in a future PR. However, the size is quite small, onlyBlobId
s.There is no remaining
read_certificate(s)
that is done for extracting only small data.Test Plan
The CI
Release Plan
This changes the binaries but does not change the storage. So, a switch
Links