]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
OSD,ReplicatedPG: expire and cleanup unconnected watchers
authorSamuel Just <samuel.just@dreamhost.com>
Mon, 3 Oct 2011 20:29:47 +0000 (13:29 -0700)
committerSamuel Just <samuel.just@dreamhost.com>
Fri, 7 Oct 2011 23:07:09 +0000 (16:07 -0700)
commit11a1d601f592a4b8529276e15a3463881355b456
tree1da7719df1e1ccd732a0dcf35108bd70aca6efbe
parent039035b3669bbfc7f05af759538e62437beffd9b
OSD,ReplicatedPG: expire and cleanup unconnected watchers

During handle_notify_timeout or ms_handle_reset, watchers are now marked
unconnected via pg->register_unconnected_watcher. A safe timer event has
been added to trigger OSD::handle_watch_timeout.
remove_watchers_and_notifies (called on role change) cleans up these
events before peering.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/osd/OSD.cc
src/osd/OSD.h
src/osd/PG.cc
src/osd/PG.h
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h
src/osd/Watch.cc
src/osd/Watch.h