-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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 rocksdb_options_add_compact_on_deletion_collector_factory
backward compatible
#11593
Conversation
@cbi42 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@@ -14,7 +14,7 @@ | |||
* Add `WriteBatch::Release()` that releases the batch's serialized data to the caller. | |||
|
|||
### Public API Changes | |||
* Add parameter `deletion_ratio` to C API `rocksdb_options_add_compact_on_deletion_collector_factory`. | |||
* Add C API `rocksdb_options_add_compact_on_deletion_collector_factory_del_ratio`. |
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.
Added comments regarding change log. Rest LGTM. Thanks for the quick fix.
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.
I think it should be added as a separate entry as mentioning backward compatibility as we have already cut the branch.
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.
Thanks, updated the change log.
Edit: decided not to add a separate entry as discussed offline.
@cbi42 has updated the pull request. You must reimport the pull request before landing. |
7de2aa6
to
c3b093d
Compare
@cbi42 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
…ward compatible (#11593) Summary: #11542 added a parameter to the C API `rocksdb_options_add_compact_on_deletion_collector_factory` which causes some internal builds to fail. External users using this API would also require code change. Making the API backward compatible by restoring the old C API and add the parameter to a new C API `rocksdb_options_add_compact_on_deletion_collector_factory_del_ratio`. Also updated change log for 8.4 and will backport this change to 8.4 branch once landed. Pull Request resolved: #11593 Test Plan: `make c_test && ./c_test` Reviewed By: akankshamahajan15 Differential Revision: D47299555 Pulled By: cbi42 fbshipit-source-id: 517dc093ef4cf02cac2fe4af4f1af13754bbda63
#11542 added a parameter to the C API
rocksdb_options_add_compact_on_deletion_collector_factory
which causes some internal builds to fail. External users using this API would also require code change. Making the API backward compatible by restoring the old C API and add the parameter to a new C APIrocksdb_options_add_compact_on_deletion_collector_factory_del_ratio
.Also updated change log for 8.4 and will backport this change to 8.4 branch once landed.
Test plan:
make c_test && ./c_test