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
|
|
|
|
|
2022-07-09 21:53:33 +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_CF_DROPPED
|
|
|
|
#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
|
2021-09-15 09:02:26 +02:00
|
|
|
|
2022-07-09 22:07:54 +02:00
|
|
|
#if ROCKSDB_MAJOR > 6 \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 12) \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 12 && ROCKSDB_PATCH >= 6)
|
|
|
|
#define IRCD_DB_HAS_MANIFEST_WRITE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ROCKSDB_MAJOR > 6 \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 14) \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 14 && ROCKSDB_PATCH >= 5)
|
|
|
|
#define IRCD_DB_HAS_FLUSH_RETRY
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ROCKSDB_MAJOR > 6 \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 16) \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 16 && ROCKSDB_PATCH >= 3)
|
|
|
|
#define IRCD_DB_HAS_MANIFEST_WRITE_NOWAL
|
|
|
|
#endif
|
|
|
|
|
2021-09-15 10:42:21 +02:00
|
|
|
#if ROCKSDB_MAJOR > 6 \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 19) \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 19 && ROCKSDB_PATCH >= 3)
|
|
|
|
#define IRCD_DB_HAS_VERSION_ABI
|
|
|
|
#endif
|
|
|
|
|
2022-07-09 22:07:54 +02:00
|
|
|
#if ROCKSDB_MAJOR > 6 \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 20) \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 20 && ROCKSDB_PATCH >= 3)
|
|
|
|
#define IRCD_DB_HAS_WAL_FULL
|
|
|
|
#endif
|
|
|
|
|
2021-09-15 09:02:26 +02:00
|
|
|
#if ROCKSDB_MAJOR > 6 \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 22) \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 22 && ROCKSDB_PATCH >= 1)
|
|
|
|
#define IRCD_DB_HAS_CACHE_GETDELETER
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ROCKSDB_MAJOR > 6 \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 22) \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 22 && ROCKSDB_PATCH >= 1)
|
|
|
|
#define IRCD_DB_HAS_CACHE_APPLYTOALL
|
|
|
|
#endif
|
2022-07-09 22:07:54 +02:00
|
|
|
|
|
|
|
#if ROCKSDB_MAJOR > 6 \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 24) \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 24 && ROCKSDB_PATCH >= 2)
|
|
|
|
#define IRCD_DB_HAS_CHANGE_TEMPERATURE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ROCKSDB_MAJOR > 6 \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 25) \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 25 && ROCKSDB_PATCH >= 1)
|
|
|
|
#define IRCD_DB_HAS_IO_MID
|
|
|
|
#define IRCD_DB_HAS_IO_USER
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ROCKSDB_MAJOR > 6 \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 26) \
|
|
|
|
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 26 && ROCKSDB_PATCH >= 0)
|
|
|
|
#define IRCD_DB_HAS_FORCED_BLOBGC
|
|
|
|
#endif
|