Extend C API to expose base db of transaction db (#11562)
Summary: Add `rocksdb_transactiondb_get_base_db` and `rocksdb_transactiondb_close_base_db` functions to the C API modeled after `rocksdb_optimistictransactiondb_get_base_db` and `rocksdb_optimistictransactiondb_close_base_db`:oxigraph-mainca50ccc71a/include/rocksdb/c.h (L2711-L2716)
With this pair of functions, it is possible to get a `rocksdb_t *` from a `rocksdb_transactiondb_t *`. The main goal is to be able to use the approximate memory usage API, only accessible to the `rocksdb_t *` type:ca50ccc71a/include/rocksdb/c.h (L2821-L2833)
Pull Request resolved: https://github.com/facebook/rocksdb/pull/11562 Reviewed By: ajkr Differential Revision: D47603343 Pulled By: jowlyzhang fbshipit-source-id: c70cf6af5834026e232fe7791634db3a396f7d5e
parent
86634885eb
commit
6628ff12d6
Loading…
Reference in new issue