2020-06-05 00:17:09 +02:00
|
|
|
// The Construct
|
|
|
|
//
|
|
|
|
// Copyright (C) The Construct Developers, Authors & Contributors
|
|
|
|
// Copyright (C) 2016-2020 Jason Volk <jason@zemos.net>
|
|
|
|
//
|
|
|
|
// Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
// purpose with or without fee is hereby granted, provided that the above
|
|
|
|
// copyright notice and this permission notice is present in all copies. The
|
|
|
|
// full license for this software is available in the LICENSE file.
|
|
|
|
|
2020-06-07 14:48:07 +02:00
|
|
|
#if ROCKSDB_MAJOR > 5 \
|
|
|
|
|| (ROCKSDB_MAJOR == 5 && ROCKSDB_MINOR >= 18)
|
|
|
|
#define IRCD_DB_HAS_ALLOCATOR
|
|
|
|
#endif
|
|
|
|
|
2020-06-05 00:17:09 +02:00
|
|
|
#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
|
|
|
|
|
2020-06-11 06:49:27 +02:00
|
|
|
#if ROCKSDB_MAJOR > 6 \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 1) \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 1 && ROCKSDB_PATCH >= 1)
|
|
|
|
#define IRCD_DB_HAS_SECONDARY
|
|
|
|
#endif
|
|
|
|
|
2020-06-05 00:17:09 +02:00
|
|
|
#if ROCKSDB_MAJOR > 6 \
|
2020-06-07 14:48:07 +02:00
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 2) \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 2 && ROCKSDB_PATCH >= 2)
|
|
|
|
#define IRCD_DB_HAS_PERIODIC_COMPACTIONS
|
2020-06-05 00:17:09 +02:00
|
|
|
#endif
|
|
|
|
|
2020-06-11 21:34:47 +02:00
|
|
|
#if ROCKSDB_MAJOR > 6 \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 2) \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 2 && ROCKSDB_PATCH >= 2)
|
|
|
|
#define IRCD_DB_HAS_MULTIGET_SINGLE
|
|
|
|
#endif
|
|
|
|
|
2020-06-05 00:17:09 +02:00
|
|
|
#if ROCKSDB_MAJOR > 6 \
|
2020-06-07 14:48:07 +02:00
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 3) \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 3 && ROCKSDB_PATCH >= 6)
|
|
|
|
#define IRCD_DB_HAS_ENV_MULTIREAD
|
2020-06-05 00:17:09 +02:00
|
|
|
#endif
|
|
|
|
|
2020-06-10 06:14:37 +02:00
|
|
|
#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
|
|
|
|
|
2020-06-05 00:17:09 +02:00
|
|
|
#if ROCKSDB_MAJOR > 6 \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 4) \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 4 && ROCKSDB_PATCH >= 6)
|
|
|
|
#define IRCD_DB_HAS_CACHE_GETCHARGE
|
|
|
|
#endif
|
|
|
|
|
2020-06-11 21:34:47 +02:00
|
|
|
#if ROCKSDB_MAJOR > 6 \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 6) \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 6 && ROCKSDB_PATCH >= 3)
|
|
|
|
#define IRCD_DB_HAS_MULTIGET_BATCHED
|
|
|
|
#endif
|
|
|
|
|
2020-06-07 14:30:17 +02:00
|
|
|
#if ROCKSDB_MAJOR > 6 \
|
2020-06-07 14:48:07 +02:00
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 7) \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 7 && ROCKSDB_PATCH >= 3)
|
|
|
|
#define IRCD_DB_HAS_ENV_FILESYSTEM
|
2020-06-07 14:30:17 +02:00
|
|
|
#endif
|
2020-06-16 07:34:08 +02:00
|
|
|
|
|
|
|
#if ROCKSDB_MAJOR > 6 \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 10) \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 10 && ROCKSDB_PATCH >= 0)
|
|
|
|
#define IRCD_DB_HAS_MULTIGET_DIRECT
|
|
|
|
#endif
|