mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 15:00:51 +01:00
ircd::db: Add define for rocksdb timestamp feature versions.
ircd::db: Add warning when feature not available.
This commit is contained in:
parent
65760fc93a
commit
5b22beaae7
2 changed files with 8 additions and 0 deletions
|
@ -3435,6 +3435,8 @@ catch(const std::exception &e)
|
|||
|
||||
return error_to_status{e};
|
||||
}
|
||||
#else
|
||||
#warning "RocksDB MultiRead is not supported for this build."
|
||||
#endif IRCD_DB_HAS_ENV_MULTIREAD
|
||||
|
||||
rocksdb::Status
|
||||
|
|
|
@ -31,6 +31,12 @@
|
|||
#define IRCD_DB_HAS_ENV_MULTIREAD
|
||||
#endif
|
||||
|
||||
#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
|
||||
|
||||
#if ROCKSDB_MAJOR > 6 \
|
||||
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 4) \
|
||||
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 4 && ROCKSDB_PATCH >= 6)
|
||||
|
|
Loading…
Reference in a new issue