提交 d0a30935 编写于 作者: D Dhruba Borthakur

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
上级 f20383f0
......@@ -51,6 +51,9 @@ class WriteBatch {
};
Status Iterate(Handler* handler) const;
// Returns the serialized string
std::string Data() { return rep_; }
private:
friend class WriteBatchInternal;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册