]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: handle xattr cache on rollback and delete_head
authorSamuel Just <sam.just@inktank.com>
Sat, 8 Feb 2014 19:24:37 +0000 (11:24 -0800)
committerSamuel Just <sam.just@inktank.com>
Mon, 17 Feb 2014 22:24:56 +0000 (14:24 -0800)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc

index 3aa466437c62a8d26506a28e4ffe88bdd36dd9f2..7ca0afb5136c4ef540f69a7113629e3e4779b42b 100644 (file)
@@ -4393,6 +4393,7 @@ inline int ReplicatedPG::_delete_head(OpContext *ctx, bool no_whiteout)
     } else {
       t->remove(soid);
     }
+    ctx->obc->attr_cache.clear();
   } else {
     ctx->mod_desc.mark_unrollbackable();
     t->remove(soid);
@@ -4501,6 +4502,7 @@ int ReplicatedPG::_rollback_to(OpContext *ctx, ceph_osd_op& op)
            t->remove(soid);
          }
        }
+       ctx->obc->attr_cache = rollback_to->attr_cache;
       } else {
        if (obs.exists) {
          ctx->mod_desc.mark_unrollbackable();