diff --git a/utilities/write_batch_with_index/write_batch_with_index_internal.h b/utilities/write_batch_with_index/write_batch_with_index_internal.h index 5fdb9035a..f3ccf40ae 100644 --- a/utilities/write_batch_with_index/write_batch_with_index_internal.h +++ b/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