Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Rocksdb 8 Support #28

wants to merge 4 commits into from

Conversation

jamesbibby
Copy link

@jamesbibby jamesbibby commented Jun 22, 2023

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

@@ -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 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it used anywhere?

Copy link
Author

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.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jamesbibby jamesbibby requested a review from akrylysov June 23, 2023 21:14
@kevinburkesegment
Copy link

As of March 2024 this needs an update since rocksdb_enable_file_deletions removed the "force" option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants