-
Notifications
You must be signed in to change notification settings - Fork 716
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass ColumnFamilyHandle around by reference; wrap Iterator in unique_ptr
In preparation for the range locking patch, clean up some code related to iterators: - Pass rocksdb::ColumnFamilyHandle around and store in classes by references instead of pointers. It is never nullptr, nor is ever reseated in the classes using it. - Wrap the rocksdb::Iterator objects in std::unique_ptr: change the factory method return types and class fields. - In both cases above mark the classes containing reference fields as non-copyable and non-moveable as needed, matching their current usage. - Mark touched methods [[nodiscard]] as applicable. In rdb_index_merge.h, remove many instances of redundant MY_ATTRIBUTE((__nonnull__)) too. - Make touched local vars auto, but with reference or pointer pulled out, sometimes avoiding redundant returned object copies. - Remove redundant instances of const from passed-by-value arguments.
- Loading branch information
1 parent
55e2d62
commit e763c6b
Showing
14 changed files
with
264 additions
and
269 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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.