mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Merge commit '92b8c7961b433d12d9d77da5d61c26a920bbd370' into updated-rocksdb
This commit is contained in:
@@ -41,10 +41,8 @@
|
||||
|
||||
namespace rocksdb {
|
||||
|
||||
BlockBuilder::BlockBuilder(int block_restart_interval,
|
||||
const Comparator* comparator)
|
||||
BlockBuilder::BlockBuilder(int block_restart_interval)
|
||||
: block_restart_interval_(block_restart_interval),
|
||||
comparator_(comparator),
|
||||
restarts_(),
|
||||
counter_(0),
|
||||
finished_(false) {
|
||||
@@ -52,9 +50,6 @@ BlockBuilder::BlockBuilder(int block_restart_interval,
|
||||
restarts_.push_back(0); // First restart point is at offset 0
|
||||
}
|
||||
|
||||
BlockBuilder::BlockBuilder(const Options& options, const Comparator* comparator)
|
||||
: BlockBuilder(options.block_restart_interval, comparator) {}
|
||||
|
||||
void BlockBuilder::Reset() {
|
||||
buffer_.clear();
|
||||
restarts_.clear();
|
||||
@@ -99,8 +94,6 @@ void BlockBuilder::Add(const Slice& key, const Slice& value) {
|
||||
Slice last_key_piece(last_key_);
|
||||
assert(!finished_);
|
||||
assert(counter_ <= block_restart_interval_);
|
||||
assert(buffer_.empty() // No values yet?
|
||||
|| comparator_->Compare(key, last_key_piece) > 0);
|
||||
size_t shared = 0;
|
||||
if (counter_ < block_restart_interval_) {
|
||||
// See how much sharing to do with previous string
|
||||
|
||||
Reference in New Issue
Block a user