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

main
Dmitri Smirnov 9 years ago
parent 2754ec9994
commit 5e8f0a66db
  1. 3
      utilities/write_batch_with_index/write_batch_with_index_internal.h

@ -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…
Cancel
Save