-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: hide raw iterator from EngineIterator interface
Previously, the EngineIterator interface exposed a GetRawIter method to retrieve the underlying Pebble iterator. This existed only to facilitate iterator clones and was intended to only ever be consumed by the storage package itself. This commit replaces GetRawIter with a CloneContext method that returns an opaque CloneContext type that contains the raw iterator. This prevents external packages from directly using the raw Pebble iterator. It also prepares for the introduction of aggregation of iterator stats, providing an envelope for propagating information on where to aggregate iterator stats when the clonee iterator closes. Epic: None Release note: None
- Loading branch information
Showing
5 changed files
with
19 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters