]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: handle dup ops earlier in do_op 1667/head
authorSage Weil <sage@inktank.com>
Mon, 14 Apr 2014 04:31:35 +0000 (21:31 -0700)
committerSage Weil <sage@inktank.com>
Mon, 14 Apr 2014 04:33:16 +0000 (21:33 -0700)
commit8905e3e2285c211e695d3d2747e6feda8ea5e55c
treea9c75f00e4d69296e5c53e2a99d7e6237fee9ee2
parent93b933fbebafab537c13c2d748c2cd20b0e8eff2
osd/ReplicatedPG: handle dup ops earlier in do_op

Current the dup op checks happen in execute_ctx, long after we handle
cache ops or get the obc and (potentially) return ENOENT.  That means that
object deletions and cache ops both aren't properly idempotent.

This is easy to fix by moving the check earlier in do_op.

Fixes: #8089
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc