Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: e515615fa0ce76df309111c0fd51454fb6a43183
https://github.com/tribe29/checkmk/commit/e515615fa0ce76df309111c0fd51454fb…
Author: Sven Panne <sven.panne(a)tribe29.com>
Date: 2022-01-10 (Mon, 10 Jan 2022)
Changed paths:
M livestatus/src/LogCache.cc
M livestatus/src/LogCache.h
M livestatus/src/Store.cc
Log Message:
-----------
Removed LogCache's API surface even more.
We simply sum up the cached lines per log file when requested. This happens
only when status.cached_log_messages is queried via Livestatus, and this
happens rarely. But even then it's a relatively cheap operation, there are
probably at most a few hundred log files in the cache.
The reason for this simplification: LogCache::apply effectively only
provides a simple iterator view on the underlying log files now, and nothing
else. This will enable further cleanups.
Change-Id: Ica2b82d7ef21d52bace45917497d945e49becc0b