]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/LogMonitor: "log last" should return up to n entries 18851/head
authorKefu Chai <kchai@redhat.com>
Mon, 6 Nov 2017 08:01:23 +0000 (16:01 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 9 Nov 2017 14:17:54 +0000 (22:17 +0800)
commitd858570755d88e9a3708952827a99cc24f09f9ab
treebed1cbbe25add10bb1c9fd16733f94ff5c0b2eb8
parent4cac43679a7688cb4765728e1a75e812d0df22de
mon/LogMonitor: "log last" should return up to n entries

limit the # of returned entries to "num", and backoff the start iterator
by one if it reaches the rend().

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit de14103f5201da69b360d9b01e249896d59376b3)
src/mon/LogMonitor.cc