Repository navigation
Add C bindings for native CDC - #13674
tclinkenbeard-oai merged 17 commits into
Conversation
…ive-cdc-c-bindings
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…nkenbeard/native-cdc-c-bindings
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
PR 13674 — Add C bindings for native CDC · High · LGTM-with-nitsReview: apple/foundationdb #13674 — Add C bindings for native CDCRigor: xhigh. Reviewed the full 12-commit squash diff ( IntentExposes the existing native CDC C++ client API ( CorrectnessAchieves the intent; the C-ABI discipline is careful and consistent with the existing binding.
BugsNone found. No memory leaks, no double-free, no lifetime hazards, no ABI/packing issues (the Omissions
AlternativesNone material. The Arena-owning result-struct + VerdictLGTM-with-nits — C-ABI ownership/lifetime, versioning, and thread-safety are correct and well-tested; only non-blocking items are the removed enum static_asserts (restore or comment) and the internal/public |
This comment has been minimized.
This comment has been minimized.
Result of foundationdb-pr-clang-ide on Linux RHEL 9
|
This comment has been minimized.
This comment has been minimized.
Result of foundationdb-pr-macos-m1 on macOS 14.x
|
This comment has been minimized.
This comment has been minimized.
Result of foundationdb-pr-clang-arm on Linux RHEL 9
|
This comment has been minimized.
This comment has been minimized.
Result of foundationdb-pr-clang on Linux RHEL 9
|
Result of foundationdb-pr on Linux RHEL 9
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
Result of foundationdb-pr-macos on macOS 14.x
|
This PR is a follow-up to #13287. It adds the following types to the C bindings:
FDBCdcMutationTypeFDBCdcStreamInfoFDBCdcMutationFDBCdcVersionedMutationsFDBCdcConsumerThe following functions are also exposed:
fdb_database_register_cdc_streamfdb_database_remove_cdc_streamfdb_database_list_cdc_streamsfdb_database_create_cdc_consumerfdb_database_resume_cdc_consumerfdb_cdc_consumer_destroyfdb_cdc_consumer_consumefdb_cdc_consumer_acknowledgefdb_cdc_consumer_get_positionfdb_future_get_cdc_versioned_mutationsfdb_future_get_cdc_stream_info_arrayfdb_future_get_cdc_consumerThese functions and types are documented in
api-c.rst.A new end-to-end test using the bindings is added to
unit_test.cpp.