]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG: avoid dereferencing invalid complete_to 23211/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 3 Sep 2018 07:37:36 +0000 (15:37 +0800)
committerNeha Ojha <nojha@redhat.com>
Fri, 7 Sep 2018 20:20:47 +0000 (16:20 -0400)
commiteb3bdf0714b9c78c5b3634d4efe3b603824fea09
tree4b9470e0cf7babdc2516600ac50229e90210d4cc
parent0e57c101c9dd51ee3a84123c96e626799ab6d21e
osd/PrimaryLogPG: avoid dereferencing invalid complete_to

For the auto-repair (EIO caused) case, we will not reinitialize
**complete_to** (because last_complete is equal to last_update!)
and hence there is chance that **complete_to** should aleady
point to **log.end()** before we call recover_got.

We could simply drop it here as we (already) logged the **complete_to**
iterator change in a more compatible way a few lines below.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit 69a2cc35840939436da09691ca62476d7f599de4)
src/osd/PrimaryLogPG.cc