0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-04 19:18:57 +02:00

ircd::db: Use some symbols in the library for ABI string info for now.

This commit is contained in:
Jason Volk 2020-05-05 22:42:11 -07:00
parent 86bacdfcb5
commit fd127472b9

View file

@ -34,10 +34,25 @@ ircd::db::version_api
}
};
extern "C" const char *
rocksdb_build_git_sha;
extern "C" const char *
rocksdb_build_compile_date;
decltype(ircd::db::version_abi)
ircd::db::version_abi
{
"RocksDB", info::versions::ABI //TODO: get this
"RocksDB", info::versions::ABI, 0, {0}, []
(auto &, const mutable_buffer &buf)
{
fmt::sprintf
{
buf, "%s (%s)\n",
lstrip(rocksdb_build_git_sha, "rocksdb_build_git_sha:"),
rocksdb_build_compile_date,
};
}
};
ircd::conf::item<size_t>