]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/DecayCounter: set last_decay to current time when decoding decay counter 22816/head
authorZhi Zhang <willzzhang@tencent.com>
Thu, 7 Jun 2018 06:18:15 +0000 (14:18 +0800)
committerPrashant D <pdhange@redhat.com>
Tue, 3 Jul 2018 08:42:17 +0000 (04:42 -0400)
commite03baf43fc5b0d5c89e57ddd6bb256d404daf0d8
treebfb88f13ce56002300fd73b64959075724a53b08
parentae503a1a0abe3610131a5f9e668fbb0f1808ec05
common/DecayCounter: set last_decay to current time when decoding decay counter

The last_decay in the msg might be 0 (utime_t()), so the eclipse time is very
large and the original value would be decayed to 0. We should set last_decay
to current time when decoding decay counter.

Fixes: http://tracker.ceph.com/issues/24440
Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
(cherry picked from commit 25166273764417258c9ad5bd9861d01875d25a1e)
src/common/DecayCounter.cc