]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: allow multiple txns to be queued via backend
authorSamuel Just <sjust@redhat.com>
Thu, 16 Apr 2015 18:47:46 +0000 (11:47 -0700)
committerSamuel Just <sjust@redhat.com>
Thu, 16 Apr 2015 18:47:46 +0000 (11:47 -0700)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PGBackend.h
src/osd/ReplicatedPG.h

index 91b4d105fca6c29abfa75e0b1db400c40855b080..1e9ec7894e7e1c26552f249157560c9ebe6a0ee3 100644 (file)
        ObjectStore::Transaction *t,
        OpRequestRef op = OpRequestRef()
        ) = 0;
+     virtual void queue_transactions(
+       list<ObjectStore::Transaction*>& tls,
+       OpRequestRef op = OpRequestRef()
+       ) = 0;
      virtual epoch_t get_epoch() const = 0;
 
      virtual const set<pg_shard_t> &get_actingbackfill_shards() const = 0;
index 8b8b834440b320ec59bf00f43e7d0a47285944b1..cce6ae559e5b151736e2501a8ebd996a08999d33 100644 (file)
@@ -339,6 +339,9 @@ public:
   void queue_transaction(ObjectStore::Transaction *t, OpRequestRef op) {
     osd->store->queue_transaction(osr.get(), t, 0, 0, 0, op);
   }
+  void queue_transactions(list<ObjectStore::Transaction*>& tls, OpRequestRef op) {
+    osd->store->queue_transactions(osr.get(), tls, 0, 0, 0, op);
+  }
   epoch_t get_epoch() const {
     return get_osdmap()->get_epoch();
   }