diff --git a/ircd/db_env.cc b/ircd/db_env.cc index 886a61c65..b98803240 100644 --- a/ircd/db_env.cc +++ b/ircd/db_env.cc @@ -3435,6 +3435,8 @@ catch(const std::exception &e) return error_to_status{e}; } +#else +#warning "RocksDB MultiRead is not supported for this build." #endif IRCD_DB_HAS_ENV_MULTIREAD rocksdb::Status diff --git a/ircd/db_has.h b/ircd/db_has.h index 428e3e3e5..445cd6945 100644 --- a/ircd/db_has.h +++ b/ircd/db_has.h @@ -31,6 +31,12 @@ #define IRCD_DB_HAS_ENV_MULTIREAD #endif +#if ROCKSDB_MAJOR > 6 \ +|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 3) \ +|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 3 && ROCKSDB_PATCH >= 6) + #define IRCD_DB_HAS_TIMESTAMP +#endif + #if ROCKSDB_MAJOR > 6 \ || (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 4) \ || (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 4 && ROCKSDB_PATCH >= 6)