mirror of
https://github.com/matrix-construct/construct
synced 2024-05-19 19:33:45 +02:00
ircd::db: Add RoundRobin TTL compaction define and reflection.
This commit is contained in:
parent
14b9c51a06
commit
d3a125f1d5
|
@ -5701,6 +5701,9 @@ ircd::db::reflect(const rocksdb::CompactionReason &r)
|
|||
#ifdef IRCD_DB_HAS_FORCED_BLOBGC
|
||||
case Reason::kForcedBlobGC: return "kForcedBlobGC";
|
||||
#endif
|
||||
#ifdef IRCD_DB_HAS_ROUND_ROBIN_TTL
|
||||
case Reason::kRoundRobinTtl: return "kRoundRobinTtl";
|
||||
#endif
|
||||
|
||||
case Reason::kNumOfReasons:
|
||||
break;
|
||||
|
|
|
@ -139,3 +139,9 @@
|
|||
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 26 && ROCKSDB_PATCH >= 0)
|
||||
#define IRCD_DB_HAS_FORCED_BLOBGC
|
||||
#endif
|
||||
|
||||
#if ROCKSDB_MAJOR > 7 \
|
||||
|| (ROCKSDB_MAJOR == 7 && ROCKSDB_MINOR > 8) \
|
||||
|| (ROCKSDB_MAJOR == 7 && ROCKSDB_MINOR == 8 && ROCKSDB_PATCH >= 3)
|
||||
#define IRCD_DB_HAS_ROUND_ROBIN_TTL
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue