Decoupling the rocksdb version check to multiple static asserts.
This commit is contained in:
parent
c0e6b09fe3
commit
3c35bc69d7
|
@ -25,11 +25,11 @@
|
|||
|
||||
#ifdef SSD_ROCKSDB_EXPERIMENTAL
|
||||
|
||||
static_assert(ROCKSDB_MAJOR >= 6
|
||||
? (ROCKSDB_MAJOR == 6
|
||||
? (ROCKSDB_MINOR >= 22 ? (ROCKSDB_MINOR == 22 ? ROCKSDB_PATCH >= 1 : true) : false)
|
||||
: true)
|
||||
: false,
|
||||
// Enforcing rocksdb version to be 6.22.1 or greater.
|
||||
static_assert(ROCKSDB_MAJOR >= 6, "Unsupported rocksdb version. Update the rocksdb to 6.22.1 version");
|
||||
static_assert(ROCKSDB_MAJOR == 6 ? ROCKSDB_MINOR >= 22 : true,
|
||||
"Unsupported rocksdb version. Update the rocksdb to 6.22.1 version");
|
||||
static_assert((ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 22) ? ROCKSDB_PATCH >= 1 : true,
|
||||
"Unsupported rocksdb version. Update the rocksdb to 6.22.1 version");
|
||||
|
||||
namespace {
|
||||
|
|
Loading…
Reference in New Issue