]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/DecayCounter: do not decay when testing denc
authorKefu Chai <kchai@redhat.com>
Sun, 25 Aug 2019 13:22:16 +0000 (21:22 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 27 Aug 2019 05:00:41 +0000 (13:00 +0800)
commitc1b47b62e4a2f66f8669f50f4b54087099d06f61
tree4fca461c7450af07af4dd2d62411c592f4778b6c
parent123f42d0aa6192abe8bf44f770feb83d37c7acfa
common/DecayCounter: do not decay when testing denc

check-generated.sh tries to verify the invariance of a type after
encoding and decoding. so we should keep the value of `DecayCounter` the
same when encoding/decoding/dumping.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/DecayCounter.cc
src/common/DecayCounter.h