mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-26 16:30:56 +00:00
Expose the serialized string that represents a WriteBatch.
Summary: Expose the serialized string that represents a WriteBatch. This is helpful to replicate a writebatch operation from one machine to another. Test Plan: make clean check Reviewers: sheki Reviewed By: sheki CC: leveldb Differential Revision: https://reviews.facebook.net/D7317
This commit is contained in:
parent
f20383f095
commit
d0a30935c6
|
@ -51,6 +51,9 @@ class WriteBatch {
|
|||
};
|
||||
Status Iterate(Handler* handler) const;
|
||||
|
||||
// Returns the serialized string
|
||||
std::string Data() { return rep_; }
|
||||
|
||||
private:
|
||||
friend class WriteBatchInternal;
|
||||
|
||||
|
|
Loading…
Reference in a new issue