Skip to content

Commit

Permalink
Disable DB cache destructor traces
Browse files Browse the repository at this point in the history
  • Loading branch information
fractasy committed Aug 28, 2024
1 parent e5b685e commit cd7ac6b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/hashdb/database_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,19 +161,19 @@ void DatabaseCache::clear(void)

DatabaseCache::~DatabaseCache()
{
TimerStart(DATABASE_CACHE_DESTRUCTOR);
//TimerStart(DATABASE_CACHE_DESTRUCTOR);
//clear();
TimerStopAndLog(DATABASE_CACHE_DESTRUCTOR);
//TimerStopAndLog(DATABASE_CACHE_DESTRUCTOR);
}

// DatabaseMTCache class implementation


DatabaseMTCache::~DatabaseMTCache()
{
TimerStart(DATABASE_MT_CACHE_DESTRUCTOR);
//TimerStart(DATABASE_MT_CACHE_DESTRUCTOR);
clear();
TimerStopAndLog(DATABASE_MT_CACHE_DESTRUCTOR);
//TimerStopAndLog(DATABASE_MT_CACHE_DESTRUCTOR);
}

// Add a record in the head of the MT cache. Returns true if the cache is full (or no cache), false otherwise
Expand Down Expand Up @@ -345,9 +345,9 @@ uint32_t DatabaseMTCache::fillCacheCahotic(){

DatabaseProgramCache::~DatabaseProgramCache()
{
TimerStart(DATABASE_PROGRAM_CACHE_DESTRUCTOR);
//TimerStart(DATABASE_PROGRAM_CACHE_DESTRUCTOR);
clear();
TimerStopAndLog(DATABASE_PROGRAM_CACHE_DESTRUCTOR);
//TimerStopAndLog(DATABASE_PROGRAM_CACHE_DESTRUCTOR);
}

// Add a record in the head of the Program cache. Returns true if the cache is full (or no cache), false otherwise
Expand Down

0 comments on commit cd7ac6b

Please sign in to comment.