diff --git a/ircd/db.cc b/ircd/db.cc index 81b35a3b7..a4f10bf55 100644 --- a/ircd/db.cc +++ b/ircd/db.cc @@ -51,16 +51,14 @@ #include #include -#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 #endif -// Internal utility interface for this definition file. -#include "db.h" - // // Misc / General linkages // diff --git a/ircd/db.h b/ircd/db.h index c5f8aeae5..606e70ad7 100644 --- a/ircd/db.h +++ b/ircd/db.h @@ -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;