-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updated the Iterator interface docs for methods Key() and Value() * changes in goLevelDBIterator Key() impl: - returns the key itself, not a copy. - updated docs to reflect the change * changes in badgerDBIterator Key() implementation - returns the key itself, not a copy. - updated docs to reflect the change * changes in pebbleDBIterator Key() implementation - returns the key itself, not a copy. - updated docs to reflect the change. * updated backend tests: To reflect the changes, the tests now copy the iterator's key for further use * changes in goLevelDBIterator Value() impl: - returns the value itself, not a copy - updated tests to reflect the change - updated docs to reflect the change * updated docs of badgerdb Key() and Value() APIs implementations. * changes in pebbleDBIterator Value() impl: - returns the value itself, not a copy - updated docs to reflect the change * updated the Iterator interface docs for methods Key() and Value() * updated badgerDBIterator docs for the Value() method * updated badgerdb Value(), and rocksdb Key() and Value() API docs * added changelog entry
- Loading branch information
Showing
9 changed files
with
47 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Iterator Key and Value APIs now return an object that must be copied before | ||
use ([\#168](https://github.com/cometbft/cometbft-db/pull/168)) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- | ||
Add a summary for the release here. | ||
If you don't change this message, or if this file is empty, the release | ||
will not be created. --> | ||
This release changes the contract of the Iterator Key() and Value() APIs. | ||
Namely, the caller is now responsible for creating a copy of their returned value if they want to modify it. |
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