]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG::do_op: delay if snapdir is unreadable 1508/head
authorSamuel Just <sam.just@inktank.com>
Tue, 18 Mar 2014 22:47:44 +0000 (15:47 -0700)
committerSamuel Just <sam.just@inktank.com>
Tue, 18 Mar 2014 22:47:46 +0000 (15:47 -0700)
commitfdcf3eb45ac0121ade2cb21a9563070e9ff1aae7
treedb53ef4868546686af1764c34d2c27a5677f5982
parentf8632699b1c4d48a8c495532462204291cab6737
ReplicatedPG::do_op: delay if snapdir is unreadable

Since all we really need on a snapdir is the context, we really only
need it to be !missing.  However, it might become !missing before it
becomes !unreadable.  That allows ops to end up in the
waiting_for_degraded queue before one in waiting_for_unreadable is
woken, which allows the ops to be reordered.  Rather than reintroduce an
extra waiting_for_missing queue, simply require !unreadable for snapdir
(which implies !misssing).

Fixes: #7777
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc