]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG: avoid dereferencing invalid complete_to 23951/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 3 Sep 2018 07:37:36 +0000 (15:37 +0800)
committerNathan Cutler <ncutler@suse.com>
Thu, 6 Sep 2018 05:47:10 +0000 (07:47 +0200)
commit5bcedd4cce7362abf599e5a1b72e87ac599ef1d2
treefc641ac3767d8377c57c28c37815aaa2dd5369e0
parentf6fc8cc42f996495087eeb5ca06830561827397d
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