Commits
Andris Zeila authored 1b07f1cc776
...G...... [ZBXNEXT-1686] refactoring and minor fixes: * change baseCache embedding as pointer rather than structure, makes initialization more simple * move more shared variables to baseCache * add logger to baseCach - it will automatically add clientID to log messages * skip reading log history if data history already returned DataLimit records * do oldest data/log scan only if data/log were read/removed from history * set c.PersistFlag based on current time, oldest log and storage period * perform data cleanup based on current time instead of new value timestamp * add more error logging * perform oldest clock, persist flag initialization during init * wrap some parts of code in functions for reuse * change old data/log timestamp type to int64 to reduce typecasts