ceph/ceph — pull request #1472 by athanatos (2014-03-16 16:13:46+00:00)
Title: 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