-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENG-5188: #1240: Preparation diff. Use single writer skiplist in DocDB.
Summary: RocksDB contains 2 implementations of skip list. `InlineSkipList`, which we've been using prior to this revision, allows concurrent writes and store keys of variable length in Node. `SkipList` allows concurrent reads, but only one writer at a time, so it should really be called `SingleWriterSkipList`. Since we write to RocksDB only from single thread, we could benefit from using `SkipList`. Also it is easier to implement erase in such list. This diff adapts interface of `SkipList` (the single-writer skip list) so it could be used by SkipListRep. Also it adds ability to store keys of variable length in Node. Test Plan: Jenkins Reviewers: timur, mikhail Reviewed By: mikhail Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D6595
- Loading branch information
Showing
6 changed files
with
379 additions
and
145 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
Oops, something went wrong.