]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG: use default priority for Backfill messages
authorSamuel Just <sam.just@inktank.com>
Fri, 14 Dec 2012 20:46:43 +0000 (12:46 -0800)
committerSamuel Just <sam.just@inktank.com>
Fri, 14 Dec 2012 21:38:51 +0000 (13:38 -0800)
commit6ab7db6717ebb9197203191124d1b4553702c6ba
tree03fefac360ed3c4c4465a5179d9e7dfe0761c4ea
parent7e1335691d83774377df8198bb09e3ecb4528966
ReplicatedPG: use default priority for Backfill messages

Backfill messages modify the stats on the replica and therefore
must be sent with the same priority as sub_op_modify to ensure
ordering.  Using recovery_op_priority caused the following
sequence:

1) Primary(1) sends MOSDPGBackfill FINISH with updated stats (v1)
2) Primary(1) sends SubOp modify for new client op with stats (v2)
3) Replica(2) receives SubOp with stats (v2)
4) Replica(2) receives MOSDPGBackfill FINISH with stats (v1)
5) Replica(2) responds and Primary(1) resets pgtemp making
    Replica(2) Primary(2)
6) PG stats on Primary(2) several ops old.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc