Decoupling the rocksdb version check to multiple static asserts.

This commit is contained in:
Neethu Haneesha Bingi 2021-09-17 04:43:12 -07:00 committed by neethuhaneesha
parent c0e6b09fe3
commit 3c35bc69d7
1 changed files with 5 additions and 5 deletions

View File

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