Module: check_mk
Branch: master
Commit: de1d8ce2f1d7b7d0a39dd5b6e16602e5c6b875e8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=de1d8ce2f1d7b7…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu May 19 14:54:33 2016 +0200
Revert "Test commit for CI."
This reverts commit 75c4270b2265d624bdf188224b6af259f5f9afa2.
---
livestatus/src/LogCache.cc | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/livestatus/src/LogCache.cc b/livestatus/src/LogCache.cc
index 509c8a4..8c93a12 100644
--- a/livestatus/src/LogCache.cc
+++ b/livestatus/src/LogCache.cc
@@ -201,12 +201,11 @@ void LogCache::handleNewMessage(Logfile *logfile, time_t
/*unused*/,
_num_at_last_check + CHECK_MEM_CYCLE) {
return; // Do not check this time
}
- int foobar;
// [1] Begin by deleting old logfiles
// Begin deleting with the oldest logfile available
_logfiles_t::iterator it;
- for (it = _logfiles.begin(); it != _logfiles.end(); it++) {
+ for (it = _logfiles.begin(); it != _logfiles.end(); ++it) {
Logfile *log = it->second;
if (log == logfile) {
// Do not touch the logfile the Query is currently accessing