Skip to content

Commit

Permalink
Make kMajorVersion and kMinorVersion take version from version macros
Browse files Browse the repository at this point in the history
  • Loading branch information
igorcanadi committed Apr 29, 2014
1 parent 6cb0cb3 commit e525bb1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ SHARED3 = $(SHARED1)
SHARED = $(SHARED1)
else
# Update db.h if you change these.
SHARED_MAJOR = 2
SHARED_MAJOR = 3
SHARED_MINOR = 0
SHARED1 = ${LIBNAME}.$(PLATFORM_SHARED_EXT)
SHARED2 = $(SHARED1).$(SHARED_MAJOR)
Expand Down
3 changes: 0 additions & 3 deletions README.fb

This file was deleted.

5 changes: 2 additions & 3 deletions include/rocksdb/db.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ struct ColumnFamilyDescriptor {
: name(_name), options(_options) {}
};

// Update Makefile if you change these
static const int kMajorVersion = 3;
static const int kMinorVersion = 0;
static const int kMajorVersion = __ROCKSDB_MAJOR__;
static const int kMinorVersion = __ROCKSDB_MINOR__;

struct Options;
struct ReadOptions;
Expand Down
1 change: 1 addition & 0 deletions include/rocksdb/version.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// Also update Makefile if you change these
#define __ROCKSDB_MAJOR__ 3
#define __ROCKSDB_MINOR__ 0
#define __ROCKSDB_PATCH__ 0

0 comments on commit e525bb1

Please sign in to comment.