Add rocksdb_livefiles_column_family_name interface to C API

This commit is contained in:
Zhicheng Wei 2019-11-13 20:41:28 +08:00
parent a19de78da5
commit c3929f74cf
2 changed files with 8 additions and 0 deletions

View File

@ -3618,6 +3618,12 @@ const char* rocksdb_livefiles_name(
return lf->rep[index].name.c_str();
}
const char* rocksdb_livefiles_column_family_name(
const rocksdb_livefiles_t* lf,
int index) {
return lf->rep[index].column_family_name.c_str();
}
int rocksdb_livefiles_level(
const rocksdb_livefiles_t* lf,
int index) {

View File

@ -1452,6 +1452,8 @@ extern ROCKSDB_LIBRARY_API int rocksdb_livefiles_count(
const rocksdb_livefiles_t*);
extern ROCKSDB_LIBRARY_API const char* rocksdb_livefiles_name(
const rocksdb_livefiles_t*, int index);
extern ROCKSDB_LIBRARY_API const char* rocksdb_livefiles_column_family_name(
const rocksdb_livefiles_t*, int index);
extern ROCKSDB_LIBRARY_API int rocksdb_livefiles_level(
const rocksdb_livefiles_t*, int index);
extern ROCKSDB_LIBRARY_API size_t