]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonitorDBStore: expose get_chunk_tx()
authorSage Weil <sage@inktank.com>
Thu, 4 Jul 2013 19:17:28 +0000 (12:17 -0700)
committerSage Weil <sage@inktank.com>
Thu, 4 Jul 2013 19:17:28 +0000 (12:17 -0700)
Allow users get the transaction unencoded.

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/MonitorDBStore.h

index a4aadc7161ab0a52572a484baf3a50fd0bf9aa77..f2810da4cc1dac1b7da82a7598564b450a37524f 100644 (file)
@@ -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);