0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-31 19:08:59 +01:00

ircd::db: Minor cleanup.

This commit is contained in:
Jason Volk 2018-09-03 21:43:31 -07:00
parent 60a0694853
commit 4f55dac071

View file

@ -133,6 +133,21 @@ namespace ircd::db
static char ircd_db_version[64];
const char *const ircd::db::version(ircd_db_version);
// Renders a version string from the defines included here.
__attribute__((constructor))
void
ircd::db::init_version()
{
::snprintf(ircd_db_version, sizeof(ircd_db_version), "%d.%d.%d",
ROCKSDB_MAJOR,
ROCKSDB_MINOR,
ROCKSDB_PATCH);
}
//
// init::init
//
ircd::db::init::init()
{
init_compressions();
@ -217,17 +232,6 @@ ircd::db::init_compressions()
};
}
// Renders a version string from the defines included here.
__attribute__((constructor))
void
ircd::db::init_version()
{
snprintf(ircd_db_version, sizeof(ircd_db_version), "%d.%d.%d",
ROCKSDB_MAJOR,
ROCKSDB_MINOR,
ROCKSDB_PATCH);
}
///////////////////////////////////////////////////////////////////////////////
//
// database