]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
PG: clear want_pg_temp in clear_primary_state only if primary 1472/head 1473/head
authorSamuel Just <sam.just@inktank.com>
Fri, 14 Mar 2014 20:09:30 +0000 (13:09 -0700)
committerSamuel Just <sam.just@inktank.com>
Fri, 14 Mar 2014 20:09:32 +0000 (13:09 -0700)
commite3300978025d53da3e29f61e2adb2a7edd43b5ad
treee27f272df6ceff0adf9fc273aabc87ec761ae409
parent984f1c3df37cb2f2cc0b0721d08d6c99307da15f
PG: clear want_pg_temp in clear_primary_state only if primary

Clearing it in that way in on_shutdown() can cause a stray
shard to clobber the want_pg_temp value created by the primary
shard on the same osd.  Thus, instead only clear it if we are
the primary.

Fixes: #7719
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/PG.cc
src/osd/ReplicatedPG.cc