Use port::constant for std::muneric_limtis<>::max()
This commit is contained in:
parent
2754ec9994
commit
5e8f0a66db
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user