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

make ColumnFamily Sync #36

Merged
merged 3 commits into from
Mar 21, 2024
Merged

make ColumnFamily Sync #36

merged 3 commits into from
Mar 21, 2024

Conversation

zaidoon1
Copy link
Owner

This resolves a long standing issue rust-rocksdb/rust-rocksdb#407 where because ColumnFamily is not Sync, we are not able to fetch all the cfs on startup and use them directly, instead, we are currently forced to call cf_handle on every operation to get the cf which adds unnecessary overhead

@adrianrunte
Copy link

Agreed, very important to make RocksDB properly usable in async code.

Besides, imho the current implementation is definitely flawed. Just looking at it from the Rust side ColumnFamily must either be Send + Sync or neither. Just Send definitely doesn't make sense.

@zaidoon1 zaidoon1 merged commit 78a8a2e into master Mar 21, 2024
14 checks passed
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.

2 participants