]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ECBackend: deal with temp collection details in handle_sub_write
authorSamuel Just <sam.just@inktank.com>
Thu, 20 Feb 2014 23:01:07 +0000 (15:01 -0800)
committerSamuel Just <sam.just@inktank.com>
Thu, 20 Feb 2014 23:01:14 +0000 (15:01 -0800)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ECBackend.cc

index 3a92c45eefaa702dd4460e8055bcbf048889832d..9e2765e806781c8af5cc4b38499858efa77ad2bc 100644 (file)
@@ -795,6 +795,11 @@ void ECBackend::handle_sub_write(
   if (!get_parent()->pgb_is_primary())
     get_parent()->update_stats(op.stats);
   ObjectStore::Transaction *localt = new ObjectStore::Transaction;
+  if (op.temp_added.size()) {
+    get_temp_coll(localt);
+    add_temp_objs(op.temp_added);
+  }
+  clear_temp_objs(op.temp_removed);
   get_parent()->log_operation(
     op.log_entries,
     op.trim_to,