Define kInlineSize in .cc file instead of header

This commit is contained in:
Igor Canadi 2014-05-14 12:29:46 -07:00
parent eea73226e9
commit 35a8873aa6
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@
namespace rocksdb { namespace rocksdb {
const size_t Arena::kInlineSize = 2048;
const size_t Arena::kMinBlockSize = 4096; const size_t Arena::kMinBlockSize = 4096;
const size_t Arena::kMaxBlockSize = 2 << 30; const size_t Arena::kMaxBlockSize = 2 << 30;
static const int kAlignUnit = sizeof(void*); static const int kAlignUnit = sizeof(void*);

View File

@ -28,7 +28,7 @@ class Arena {
Arena(const Arena&) = delete; Arena(const Arena&) = delete;
void operator=(const Arena&) = delete; void operator=(const Arena&) = delete;
static const size_t kInlineSize = 2048; static const size_t kInlineSize;
static const size_t kMinBlockSize; static const size_t kMinBlockSize;
static const size_t kMaxBlockSize; static const size_t kMaxBlockSize;