]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: rework peer map epoch caching
authorSage Weil <sage.weil@dreamhost.com>
Fri, 20 May 2011 19:55:29 +0000 (12:55 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Fri, 20 May 2011 22:15:12 +0000 (15:15 -0700)
commit726aebea8fa8e80055c6bdbc721a59f10e0c6933
treefb24525a9b02e5da7217f2106ebf911ae81e8350
parent27c0bce63c2723411dd20f1e7b2cc59f0cfdbd60
osd: rework peer map epoch caching

We try to keep track of which epochs our peers have so that we can be
semi-intelligent about which map incrementals we send preceeding any
messages.  Since this is useful from the heartbeat and cluster channels/
threads, protect the data with an inner lock and clean up the callers.

Be smarter about when we forget.

Make note of peer epoch when we receive a ping.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osd/OSD.cc
src/osd/OSD.h