-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rocksdb 8 Support #28
base: master
Are you sure you want to change the base?
Conversation
@@ -6,6 +6,16 @@ import ( | |||
"github.com/facebookgo/ensure" | |||
) | |||
|
|||
// fatalAsError is used as a wrapper to make it possible to use ensure | |||
// also if C calls Go otherwise it will throw a internal lockOSThread error. | |||
type fatalAsError struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it used anywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes just below in this file (https://github.com/DataDog/gorocksdb/pull/28/files#diff-f22ce3b505e233e60c77c10b7ff5c1ba252b2051fa211860ace6c0ac174c05d0R28)
It was previously in filter_policy_test.go which was deleted (that functionality was deprecated/removed) so I just moved this function close to the other place it was used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As of March 2024 this needs an update since rocksdb_enable_file_deletions removed the "force" option |
Update the library to be Rocksdb 8 compatible.
The current library is not compatible with RocksDB 8+, this PR updates the bindings to be 8 compatible and adds the NewIteratorCF function to Transaction.
Key changes this PR supports:
RocksDB 8:
Remove compressed block cache
RocksDB 7:
FilterPolicy API changes for 7.0
Remove deprecated option DBOptions::max_mem_compaction_level
Remove deprecated API AdvancedColumnFamilyOptions::rate_limit_delay_max_milliseconds
Remove deprecated option DBOptions::skip_log_error_on_recovery
Remove unused option purge_redundant_kvs_while_flush