]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/PGMap: set initial pg timestamp as osdmap modified stamp
authorSage Weil <sage@redhat.com>
Wed, 22 Mar 2017 18:21:46 +0000 (13:21 -0500)
committerSage Weil <sage@redhat.com>
Wed, 29 Mar 2017 15:39:27 +0000 (11:39 -0400)
commitcc51f56bb2c153bf35078eb95311e1d35c118c9f
treefad66269075b2468e7ee35395a26b92de23fd7ef
parent79bf5547cc49b897e285c617e2921c773e625090
mon/PGMap: set initial pg timestamp as osdmap modified stamp

Currently the PGMap may register the new pg in multiple places: the
mgr or mon, and the timestamp is when the mon or mgr gets around to
recording it into its PGMap.  Make this deterministic by using the OSDMap
mtime (which is when the PG was *actually* created).

This fixes a problem where the pg create command has one timestamp (from
the mon) and the pgmap on the mgr has another, so an observer will see the
last_scrub_stamp (and other timestamps) change when nothing has actually
happened.

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