Skip to content

RocksDB version macros

Igor Canadi edited this page May 27, 2014 · 2 revisions

Since RocksDB version 3.1, we started defining version macros in include/rocksdb/version.h:

#define ROCKSDB_MAJOR <major version>
#define ROCKSDB_MINOR <minor version>
#define ROCKSDB_PATCH <patch version>

That way, you can make your code compile and work with multiple versions of RocksDB, even though we change some of the API you might be using.

Contents

Clone this wiki locally