Use port::constant for std::muneric_limtis<>::max()

This commit is contained in:
Dmitri Smirnov 2015-09-21 16:56:47 -07:00
parent 2754ec9994
commit 5e8f0a66db

View File

@ -15,6 +15,7 @@
#include "rocksdb/slice.h"
#include "rocksdb/status.h"
#include "rocksdb/utilities/write_batch_with_index.h"
#include "port/port.h"
namespace rocksdb {
@ -30,7 +31,7 @@ struct WriteBatchIndexEntry {
// If this flag appears in the offset, it indicates a key that is smaller
// than any other entry for the same column family
static const size_t kFlagMin = UINT64_MAX;
static const size_t kFlagMin = port::kMaxUint64;
size_t offset; // offset of an entry in write batch's string buffer.
uint32_t column_family; // column family of the entry