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.
Description
Resolves #4584
This PR adds support for the Hot Archive to TX apply. Specifically,
InvokeHostFunctionOp
will check both the live BucketList and Hot Archive BucketList for archived entries. TheRestoreFootprintOp
can now restore entries from both the live BucketList and Hot Archive.Additionally, restore meta has also changed for p23. The
LEDGER_ENTRY_RESTORED
type has been added for the restore op. When an entry is restored. both theLedgerEntry
of the restored data and the correspondingTTL
entry are emitted asLEDGER_ENTRY_RESTORED LedgerEntryChangeType
. If the entry has not yet been evicted (such that the entry and it's TTL still exist in the live BucketList), the preexisting TTL value will be emitted asLEDGER_ENTRY_STATE
. If the entry has been evicted such that the TTL value has been previously deleted, only a single change type ofLEDGER_ENTRY_RESTORED
will be emitted for the new value. For the data being restored,LEDGER_ENTRY_STATE
is never emitted.Rebased on #4585.
Checklist
clang-format
v8.0.0 (viamake format
or the Visual Studio extension)