]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/PrimaryLogPG: fix last_peering_reset checking on manifest flushing
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 6 Mar 2019 06:11:16 +0000 (14:11 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 6 Mar 2019 06:28:55 +0000 (14:28 +0800)
commitba210653b51ac96202507309ec2e9d4077ff6d7f
tree39a1ed36b1baebc21980758c4dba59bf60d81429
parent76ea722880612f9a3c25c38812c2f93d642d7400
osd/PrimaryLogPG: fix last_peering_reset checking on manifest flushing

```handle_manifest_flush``` is obviously using the wrong
**last_peering_reset** to check whether a new peering procedure
has been re-initialized by then.

Fix by using a different alias of the local copy of the
pg-wide **last_peering_reset** variable, which is less confusing and
error-prone.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h