Skip to content

[C API] add rocksdb_set_db_options for dynamic DB option updates#14615

Open
mjc2-stripe wants to merge 1 commit intofacebook:mainfrom
mjc2-stripe:add-rocksdb-set-db-options
Open

[C API] add rocksdb_set_db_options for dynamic DB option updates#14615
mjc2-stripe wants to merge 1 commit intofacebook:mainfrom
mjc2-stripe:add-rocksdb-set-db-options

Conversation

@mjc2-stripe
Copy link
Copy Markdown

Context

The C API lacks a SetDBOptions wrapper, so callers using the C bindings cannot dynamically reconfigure DB-level options at runtime without dropping down to the C++ API.

Changes

  • Add rocksdb_set_db_options to the C API as a wrapper around DB::SetDBOptions
  • Adds new tests in c_test.c covering both valid and invalid option updates

@meta-cla meta-cla Bot added the CLA Signed label Apr 14, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Apr 15, 2026

@xingbowang has imported this pull request. If you are a Meta employee, you can view this in D101010593.

@github-actions
Copy link
Copy Markdown

✅ clang-tidy: No findings on changed lines

Completed in 49.5s.

@mjc2-stripe
Copy link
Copy Markdown
Author

Hey @jaykorean! Could you please take a look at this when you get the chance? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants