]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: track history and past_intervals for creating pgs
authorSage Weil <sage@redhat.com>
Fri, 19 Apr 2019 21:33:04 +0000 (16:33 -0500)
committerSage Weil <sage@redhat.com>
Mon, 22 Apr 2019 14:33:05 +0000 (09:33 -0500)
commit85d9dc6b107fa813bb56860e8b4c6c51e267e1f0
treeff4d8c1ab5182e38a53b6d436551db089528e454
parent5071f1db54e9850d65aca3cfc76ee8286c6c2f28
mon/OSDMonitor: track history and past_intervals for creating pgs

PG create messages from mons are the last case where the OSD may have to
scan an unbounded number of old maps in order to construct a valid
pg_history_t and PastIntervals.  Try to avoid making that a difficult
case by maintaining those structures on the monitor.

It is still possible that the mon may send a pg create message to the OSD
and it sits in a message queue for a very long time, but this would be a
very difficult situation to get into, and is no different from inter-OSD
messages that include history and past_intervals.

Signed-off-by: Sage Weil <sage@redhat.com>
src/messages/MOSDPGCreate2.h
src/mon/CreatingPGs.h
src/mon/OSDMonitor.cc
src/tools/ceph-dencoder/types.h
src/tools/ceph_monstore_tool.cc