]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/DecayCounter: set last_decay to current time when decoding decay counter 22779/head
authorZhi Zhang <willzzhang@tencent.com>
Thu, 7 Jun 2018 06:18:15 +0000 (14:18 +0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 3 Jul 2018 18:17:48 +0000 (11:17 -0700)
commite0d3810d6626731537cc76d9550e4cadddb2f689
treeecb25016c20540aa5b08d738bb690f7bb5f0bfab
parent5849a0aebb9882a23adddea34531bb01174a48af
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)
Conflicts:
src/common/DecayCounter.cc
src/common/DecayCounter.cc