From: Samuel Just Date: Thu, 16 Apr 2015 18:47:46 +0000 (-0700) Subject: osd: allow multiple txns to be queued via backend X-Git-Tag: v9.0.2~87^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e89ee9e0e1a91b15ecb00d41185de1d34c68104c;p=ceph.git osd: allow multiple txns to be queued via backend Signed-off-by: Sage Weil --- diff --git a/src/osd/PGBackend.h b/src/osd/PGBackend.h index 91b4d105fca..1e9ec7894e7 100644 --- a/src/osd/PGBackend.h +++ b/src/osd/PGBackend.h @@ -109,6 +109,10 @@ ObjectStore::Transaction *t, OpRequestRef op = OpRequestRef() ) = 0; + virtual void queue_transactions( + list& tls, + OpRequestRef op = OpRequestRef() + ) = 0; virtual epoch_t get_epoch() const = 0; virtual const set &get_actingbackfill_shards() const = 0; diff --git a/src/osd/ReplicatedPG.h b/src/osd/ReplicatedPG.h index 8b8b834440b..cce6ae559e5 100644 --- a/src/osd/ReplicatedPG.h +++ b/src/osd/ReplicatedPG.h @@ -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& tls, OpRequestRef op) { + osd->store->queue_transactions(osr.get(), tls, 0, 0, 0, op); + } epoch_t get_epoch() const { return get_osdmap()->get_epoch(); }