mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
sync with upstream @ 21409451
Check the NEWS file for details of what changed. git-svn-id: https://leveldb.googlecode.com/svn/trunk@28 62dab493-f737-651d-591e-8d6aee1b9529
This commit is contained in:
@@ -37,30 +37,6 @@ class WriteBatchInternal {
|
||||
static void SetContents(WriteBatch* batch, const Slice& contents);
|
||||
|
||||
static Status InsertInto(const WriteBatch* batch, MemTable* memtable);
|
||||
|
||||
// Iterate over the contents of a write batch.
|
||||
class Iterator {
|
||||
public:
|
||||
explicit Iterator(const WriteBatch& batch);
|
||||
bool Done() const { return done_; }
|
||||
void Next();
|
||||
ValueType op() const { return op_; }
|
||||
const Slice& key() const { return key_; }
|
||||
const Slice& value() const { return value_; }
|
||||
SequenceNumber sequence_number() const { return seq_; }
|
||||
Status status() const { return status_; }
|
||||
|
||||
private:
|
||||
void GetNextEntry();
|
||||
|
||||
Slice input_;
|
||||
bool done_;
|
||||
ValueType op_;
|
||||
Slice key_;
|
||||
Slice value_;
|
||||
SequenceNumber seq_;
|
||||
Status status_;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user