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