0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 08:42:34 +01:00

ircd::db: Add Env::Priority:USER (6.1.1).

This commit is contained in:
Jason Volk 2020-05-04 20:54:46 -07:00
parent 5fbcc5b982
commit 572396f5f4
2 changed files with 9 additions and 0 deletions

View file

@ -8583,6 +8583,9 @@ ircd::db::reflect(const rocksdb::Env::Priority &p)
case rocksdb::Env::Priority::BOTTOM: return "BOTTOM"_sv;
case rocksdb::Env::Priority::LOW: return "LOW"_sv;
case rocksdb::Env::Priority::HIGH: return "HIGH"_sv;
#ifdef IRCD_DB_HAS_ENV_PRIO_USER
case rocksdb::Env::Priority::USER: return "USER"_sv;
#endif
case rocksdb::Env::Priority::TOTAL: assert(0); break;
}

View file

@ -8,6 +8,12 @@
// copyright notice and this permission notice is present in all copies. The
// full license for this software is available in the LICENSE file.
#if ROCKSDB_MAJOR > 6 \
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 1) \
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 1 && ROCKSDB_PATCH >= 1)
#define IRCD_DB_HAS_ENV_PRIO_USER
#endif
/// Internal environment hookup.
///
struct ircd::db::database::env final