]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: introduce map_lock RWLock, take read lock during heartbeat
authorSage Weil <sage@newdream.net>
Sat, 15 Nov 2008 04:50:35 +0000 (20:50 -0800)
committerSage Weil <sage@newdream.net>
Sat, 15 Nov 2008 05:14:53 +0000 (21:14 -0800)
commit0234e3c84842d40d823248e70575d2bb269f7a95
treee2310414b33bb78812ec72929ac4c6bf314dc20a
parentf833d886cbc2a443685e04dc7013850cffafe58e
osd: introduce map_lock RWLock, take read lock during heartbeat

This prevents a race between handle_osd_map updating the map while
heartbeat() is using it to ping peers.

Currently we take a write ref over the entirely to handle_osd_map; we may
be able to push that down a bit.
src/osd/OSD.cc
src/osd/OSD.h