]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix FP error in ROUND_UP_TO
authorJohn Spray <john.spray@redhat.com>
Tue, 26 Aug 2014 16:36:16 +0000 (17:36 +0100)
committerSage Weil <sage@redhat.com>
Thu, 28 Aug 2014 00:32:26 +0000 (17:32 -0700)
commitdb8d6e6e190de964ec3d5d1bbc87da2dcb3213f5
treeb19818ec872da1dc4818f641a6cf364afbc0b783
parent8e3120fcb379a00d370e4c04d34af35e596e2de9
mds: fix FP error in ROUND_UP_TO

Explicitly handle case where denominator is 0, instead of
passing into ROUND_UP_TO.

Regression from 9449520b121fc6ce0c64948386d4ff77f46f4f5f

Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit bf3e4835dabc057982def1b5c9a6499c04ac5312)
src/mds/Locker.cc