]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
PG: set/clear CREATING in Primary state entry/exit 4297/head 4384/head
authorSamuel Just <sjust@redhat.com>
Tue, 24 Mar 2015 17:48:02 +0000 (10:48 -0700)
committerxinxin shu <xinxin.shu@intel.com>
Tue, 7 Apr 2015 20:49:06 +0000 (04:49 +0800)
commit29bc9e56a978d4e18a507e71858baa21037964c4
tree7b10970b8116ad4a503272a8808ab92ce5f56abc
parent12143ff9b25fdd96f8d1a9cecb1329c7f354d414
PG: set/clear CREATING in Primary state entry/exit

Previously, we did not actually set it when we got a pg creation message from
the mon.  It would actually get set on the first start_peering_interval after
that point.  If we don't get that far, but do send a stat update to the mon, we
can end up with 11197.  Instead, let's just set it and clear it upon entry into
and exit from the Primary state.

Fixes: 11197
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit ddf0292250dfb1040d3cad96fa2cf886fd65933c)
src/osd/PG.cc