0
0
Fork 0
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:
Jason Volk 2023-02-02 20:42:25 -08:00
parent 14b9c51a06
commit d3a125f1d5
2 changed files with 9 additions and 0 deletions

View file

@ -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;

View file

@ -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