forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
engine: Implement Engine, Iterator interfaces for Pebble
This change implements the interfaces defined in `pkg/storage/engine/engine.go` for Pebble, in particular `Engine`, `Iterator`, and related ones. Also ports the MVCC Scanner to Go for use in `iter.MVCC{Get,Scan}`. Other related changes elsewhere in the codebase to let an incomplete Engine implementer (i.e. without WithSSTables, and without a compactor) run otherwise. Also adds a parameter in the `--store` command line flag to specify what engine to use. `--store=engine=pebble,path=node1` starts a Pebble based store. NOTE: High risk change, do not merge this for 19.2. Fixes cockroachdb#39674. TODO: - [ ] Add more test coverage, especially around batches Release note: None
- Loading branch information
Showing
12 changed files
with
2,195 additions
and
164 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
Oops, something went wrong.