summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-07-04 12:17:28 -0700
committerSage Weil <sage@inktank.com>2013-07-04 12:17:28 -0700
commit40672219a081f0dc2dd536977290ef05cfc9f097 (patch)
tree996765121d8e1c0c56c99b5d16fee26bdf5929eb
parentdb2bb270e93ed44f9252d65d1d4c9b36875d0ea5 (diff)
downloadceph-40672219a081f0dc2dd536977290ef05cfc9f097.tar.gz
mon/MonitorDBStore: expose get_chunk_tx()
Allow users get the transaction unencoded. Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/mon/MonitorDBStore.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mon/MonitorDBStore.h b/src/mon/MonitorDBStore.h
index a4aadc7161a..f2810da4cc1 100644
--- a/src/mon/MonitorDBStore.h
+++ b/src/mon/MonitorDBStore.h
@@ -277,7 +277,6 @@ class MonitorDBStore
return true;
}
- virtual void _get_chunk(Transaction &tx) = 0;
virtual bool _is_valid() = 0;
public:
@@ -292,9 +291,10 @@ class MonitorDBStore
virtual bool has_next_chunk() {
return !done && _is_valid();
}
- virtual void get_chunk(bufferlist &bl) {
+ virtual void get_chunk_tx(Transaction &tx) = 0;
+ virtual void get_chunk(bufferlist& bl) {
Transaction tx;
- _get_chunk(tx);
+ get_chunk_tx(tx);
if (!tx.empty())
tx.encode(bl);
}
@@ -324,7 +324,7 @@ class MonitorDBStore
* differ from the one passed on to the function)
* @param last_key[out] Last key in the chunk
*/
- virtual void _get_chunk(Transaction &tx) {
+ virtual void get_chunk_tx(Transaction &tx) {
assert(done == false);
assert(iter->valid() == true);
@@ -361,7 +361,7 @@ class MonitorDBStore
virtual ~SinglePrefixStoreIteratorImpl() { }
private:
- virtual void _get_chunk(Transaction &tx) {
+ virtual void get_chunk_tx(Transaction &tx) {
assert(done == false);
assert(iter->valid() == true);