Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 2c8486028fb96e8b1cee8f3259c41660a65c08f8
https://github.com/tribe29/checkmk/commit/2c8486028fb96e8b1cee8f3259c41660a…
Author: Sven Panne <sven.panne(a)tribe29.com>
Date: 2022-01-11 (Tue, 11 Jan 2022)
Changed paths:
M livestatus/src/LogCache.h
M livestatus/src/Store.cc
M livestatus/src/TableLog.cc
M livestatus/src/TableLog.h
M livestatus/src/TableStateHistory.cc
M livestatus/src/TableStateHistory.h
Log Message:
-----------
Introduce a LogFiles class.
This makes the fact explicit that one *must* use LogCache::apply()
to access the log files in the cache. Things like this are a good
idea in general, see e.g.
https://doc.rust-lang.org/std/sync/struct.Mutex.html#method.lock
where one *must* use lock (or try_lock) to access the protected data.
Change-Id: Ie082e4954500325b3d1208212c63130a1f340efa