]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/LogMonitor: "log last" should return up to n entries
authorKefu Chai <kchai@redhat.com>
Mon, 6 Nov 2017 08:01:23 +0000 (16:01 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 6 Nov 2017 08:03:45 +0000 (16:03 +0800)
commitde14103f5201da69b360d9b01e249896d59376b3
tree5da6800c03461a270c790e4daee8b52fb0e48b37
parentf265ed6b1c31946b6212ecd9f3861520a987d737
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>
src/mon/LogMonitor.cc