]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/PGMonitor: revamp how pg creates are tracked
authorSage Weil <sage@redhat.com>
Thu, 8 Oct 2015 16:13:40 +0000 (12:13 -0400)
committerSage Weil <sage@redhat.com>
Mon, 23 Nov 2015 13:38:51 +0000 (08:38 -0500)
commit1f4b7141c5a381a0da759bd5773501f1fbaaa078
tree51e58ef3e7ed7e4153334f64ab0b59c44155a3ad
parent3ad0c9215f667732eea45034a7e81de2cd33eb40
mon/PGMonitor: revamp how pg creates are tracked

Previously we were calculating and managing in-core state that
wasn't committed as part of the pg_map, leading to all sorts of
ugliness that didn't really work.  Instead,

 * set mapping in all creating pgs in the committed pg_map
 * make all pg create message sending be based on committed state
 * update mappings for creating pgs every time we consume a new
   osdmap, so that we have a reliable/stable epoch to attach to
   it.

In particular, having that stable epoch means we have a reference
we can put in the pg create message that will also be used for
the subscription version.  That way OSDs get consistent creates
from any mon.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/PGMonitor.cc
src/mon/PGMonitor.h