]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
time: Have skewing-now call non-skewing now
authorAdam C. Emerson <aemerson@redhat.com>
Mon, 1 Feb 2016 15:40:54 +0000 (10:40 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 5 Feb 2016 16:21:41 +0000 (11:21 -0500)
commit0fcb3070acc4e07f6e920f7db703e5e90819a1ff
tree4e9cbb1a4b1de63ef1094a99daeab94360980362
parented8b675a6e6c2b8abbd017f488dabcc4a16ec596
time: Have skewing-now call non-skewing now

For the real-time clocks, Ceph's testing infrastructure likes to be able to
inject a skew. To avoid pulling CephContext into ceph_time.h these are moved to
ceph_time.cc. The original way this was done called clock_gettime in both
places.

This is an unnecessary duplication and apparently error-prone. So only call
clock_gettime from one place.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/common/ceph_time.cc