]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: avoid potential expensive grace calculation 9416/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 31 May 2016 22:40:05 +0000 (15:40 -0700)
committerJesse Williamson <jwilliamson@suse.de>
Thu, 28 Jul 2016 21:43:54 +0000 (14:43 -0700)
commit23498a9620f792cd099dba028c5bdf96b1a625be
treebcf355d03642754d78727a67e891e1c988c0103d
parent1b6f6f27b77803727a523b4337cbad411e8321ed
mon/OSDMonitor: avoid potential expensive grace calculation

The grace calculation during check_failure() is now very complicated
and time-consuming. Therefore we shall skip this when it is possible.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit 3557903d5d57642179b2ae137bedc389974b1956)

 Conflicts:
src/mon/OSDMonitor.cc

Resolved by choosing the move-to-top implementation. Removed unused vars.
src/mon/OSDMonitor.cc