0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-06 02:28:38 +02:00

ircd::db: Minor cleanup.

This commit is contained in:
Jason Volk 2018-12-08 15:37:18 -08:00
parent 1ba22a21ba
commit 8739ef90ce

View file

@ -45,6 +45,17 @@ namespace ircd::db
// db subsystem has its own logging facility
extern struct log::log log;
// Version information from rocksdb headers (when building ircd).
extern const uint version[3];
extern const string_view version_str;
// Version of the RocksDB shared library (when running ircd).
extern const uint abi_version[3];
extern const string_view abi_version_str;
// Supported compressions (detected when running ircd)
extern std::array<std::string, 16> compressions;
}
#include "pos.h"
@ -74,17 +85,6 @@ namespace ircd::db
//
namespace ircd::db
{
// Version information from rocksdb headers (when building ircd).
extern const uint version[3];
extern const string_view version_str;
// Version of the RocksDB shared library (when running ircd).
extern const uint abi_version[3];
extern const string_view abi_version_str;
// Supported compressions (detected when running ircd)
extern std::array<std::string, 16> compressions;
// Utils for "name:checkpoint" string amalgam
std::string namepoint(const string_view &name, const uint64_t &checkpoint);
std::pair<string_view, uint64_t> namepoint(const string_view &name);