]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/Watch: set timeout event for new watchers
authorSage Weil <sage@redhat.com>
Sat, 8 Nov 2014 03:45:21 +0000 (19:45 -0800)
committerSage Weil <sage@redhat.com>
Thu, 4 Dec 2014 18:32:38 +0000 (10:32 -0800)
commit26e2fc73210a14d6b61ac8bff83c68bceb2cfac1
tree32c7cba654165de55aabb598642324befe92f3c4
parent83189b07da8cc26a93db431bfc2cfa8979eef72d
osd/Watch: set timeout event for new watchers

For a new watcher, we set the timeout event on connect, and reset it when
we get a ping.

For an old watcher, we continue to set the timeout on disconnect() and
rely on the msgr Connection reset.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h
src/osd/Watch.cc
src/osd/Watch.h