0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-29 20:28:52 +02:00

ircd::db: Move the port define; explain.

This commit is contained in:
Jason Volk 2018-09-24 21:34:08 -07:00
parent 1a0d297a09
commit 66e5a19751
2 changed files with 8 additions and 4 deletions

View file

@ -51,16 +51,14 @@
#include <ircd/db/database/env/file_lock.h>
#include <ircd/db/database/env/state.h>
#define IRCD_DB_PORT
// Internal utility interface for this definition file.
#include "db.h"
// RocksDB port linktime-overriding interfaces (experimental).
#ifdef IRCD_DB_PORT
#include <ircd/db/database/env/port.h>
#endif
// Internal utility interface for this definition file.
#include "db.h"
//
// Misc / General linkages
//

View file

@ -30,6 +30,12 @@
///
//#define RB_DEBUG_DB_PORT
/// Defined to enable our rocksdb::port implementation which connects to our
/// ircd::ctx threading implementation. This is experimental. Note: at this
/// time this MUST be enabled or rocksdb's will be using posix threading and
/// that will not work with our env.
#define IRCD_DB_PORT
namespace ircd::db
{
struct throw_on_error;