]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: use monotonic waits in Beacon
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 17 Aug 2018 22:03:56 +0000 (15:03 -0700)
committerVenky Shankar <vshankar@redhat.com>
Tue, 6 Nov 2018 04:17:26 +0000 (09:47 +0530)
commit4f425d6c7adf0f30344b009d0a5171e618419915
treee0e15827e14d392e80c6ad16bf60f8ca4ec2eae5
parent8e0ed23ac69935ccaa121629d856ddddd5d480e9
mds: use monotonic waits in Beacon

This guarantees that the sender thread cannot be disrupted by system clock
changes. This commit also simplifies the sender thread by manually managing the
thread and avoiding unnecessary context creation.

Fixes: http://tracker.ceph.com/issues/32090
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit a5fc29b95281c6ca58c9177c665c379846beb4b3)

 Conflicts:
src/mds/Beacon.cc
src/mds/Beacon.cc
src/mds/Beacon.h