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:
parent
60a0694853
commit
4f55dac071
1 changed files with 15 additions and 11 deletions
26
ircd/db.cc
26
ircd/db.cc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue