]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
PG: always clear_primary_state when leaving Primary
authorSamuel Just <sjust@redhat.com>
Fri, 14 Nov 2014 23:44:20 +0000 (15:44 -0800)
committerSamuel Just <sjust@redhat.com>
Fri, 14 Nov 2014 23:51:10 +0000 (15:51 -0800)
commitc87bde64dfccb5d6ee2877cc74c66fc064b1bcd7
tree8b8318ea4dea884747359cf26b2df5c87f07fb77
parent31a9da0c0baee4343f06682c72136e9f985a7594
PG: always clear_primary_state when leaving Primary

Otherwise, entries from the log collection process might leak into the next
epoch, where we might end up choosing a different authoritative log.  In this
case, it resulted in us not rolling back to log entries on one of the replicas
prior to trying to recover from an affected object due to the peer_missing not
being cleared.

Fixes: #10059
Backport: giant, firefly, dumpling
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/PG.cc