]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: tolerate promotion completion with stopped agent
authorSage Weil <sage@redhat.com>
Mon, 21 Sep 2015 15:41:03 +0000 (11:41 -0400)
committerSage Weil <sage@redhat.com>
Sun, 27 Sep 2015 12:30:17 +0000 (08:30 -0400)
commite72bdc3bf1541e445f74def70b5aa185f1757468
tree056f0f2736e9c0473da62042ffcb054ea24c6a42
parentfe0fc4f18f6f275b34e8bbfa868a7310ecc3842f
osd/ReplicatedPG: tolerate promotion completion with stopped agent

We may start a promotion, then get a pool update that disables the
agent, and then complete it.  We should not segfault in this case.

Fixes: #13190
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit fd9ce66e8b76787f69c5e337332d57aa72c8b8d5)
src/osd/ReplicatedPG.cc