Skip to content

Comments

Add rocksdb_readoptions_set_table_filter to C API#20

Open
pcholakov wants to merge 1 commit intorestatedev:restate-10.9.1from
pcholakov:table-filter
Open

Add rocksdb_readoptions_set_table_filter to C API#20
pcholakov wants to merge 1 commit intorestatedev:restate-10.9.1from
pcholakov:table-filter

Conversation

@pcholakov
Copy link
Collaborator

@pcholakov pcholakov commented Feb 9, 2026

  • Expose ReadOptions::table_filter through the C API via rocksdb_readoptions_set_table_filter
  • Accepts a state pointer, filter callback, and destructor following the established pattern (e.g. rocksdb_compactionfilter_create)
  • Uses shared_ptr<void> to manage callback lifetime through the std::function lambda

Test plan

Expose ReadOptions::table_filter through the C API. The new function
accepts a state pointer, a filter callback, and a destructor. The
implementation wraps these into a std::function lambda assigned to
rep.table_filter, using shared_ptr for lifetime management.
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.

1 participant