mirror of
https://github.com/matrix-construct/construct
synced 2025-02-17 01:00:10 +01:00
ircd::db: Use some symbols in the library for ABI string info for now.
This commit is contained in:
parent
86bacdfcb5
commit
fd127472b9
1 changed files with 16 additions and 1 deletions
17
ircd/db.cc
17
ircd/db.cc
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue