]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ECBackend: use tbl for empty transaction as well if necessary 3769/head
authorSamuel Just <sjust@redhat.com>
Tue, 17 Feb 2015 23:30:49 +0000 (15:30 -0800)
committerSamuel Just <sjust@redhat.com>
Tue, 17 Feb 2015 23:30:49 +0000 (15:30 -0800)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/ECBackend.cc

index 9558f144b96389d3610402945c63224041cd8a47..951b249aaeb56084a070232118b375e119a2d0f1 100644 (file)
@@ -1518,6 +1518,9 @@ void ECBackend::start_write(Op *op) {
     trans[i->shard];
     trans[i->shard].set_use_tbl(parent->transaction_use_tbl());
   }
+  ObjectStore::Transaction empty;
+  empty.set_use_tbl(parent->transaction_use_tbl());
+
   op->t->generate_transactions(
     op->unstable_hash_infos,
     ec_impl,
@@ -1557,7 +1560,7 @@ void ECBackend::start_write(Op *op) {
       op->reqid,
       op->hoid,
       stats,
-      should_send ? iter->second : ObjectStore::Transaction(),
+      should_send ? iter->second : empty,
       op->version,
       op->trim_to,
       op->trim_rollback_to,