You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL-1737 Add debug logging options for LRU cache
This adds options which are user enabled to debug the LRU cache inside ColumnStore. Specifically cache flushing. It adds the following: * PrimProc flush information when SIGUSR2 mode is enabled * cpimport dictionary flush information when -d2 is used * WriteEngineServer DML flush information to STDERR
This commit is contained in:
@ -709,6 +709,17 @@ int TableInfo::setParseComplete(const int &columnId,
|
||||
#ifdef PROFILE
|
||||
Stats::startParseEvent(WE_STATS_FLUSH_PRIMPROC_BLOCKS);
|
||||
#endif
|
||||
if (fLog->isDebug(DEBUG_2))
|
||||
{
|
||||
ostringstream oss;
|
||||
oss << "Dictionary cache flush: ";
|
||||
for (uint32_t i = 0; i < fDictFlushBlks.size(); i++)
|
||||
{
|
||||
oss << fDictFlushBlks[i] << ", ";
|
||||
}
|
||||
oss << endl;
|
||||
fLog->logMsg( oss.str(), MSGLVL_INFO1 );
|
||||
}
|
||||
cacheutils::flushPrimProcAllverBlocks(fDictFlushBlks);
|
||||
#ifdef PROFILE
|
||||
Stats::stopParseEvent(WE_STATS_FLUSH_PRIMPROC_BLOCKS);
|
||||
|
Reference in New Issue
Block a user