Commit 427535e3 authored by Eric Cano's avatar Eric Cano
Browse files

Fixed uninitialized variable in SessionStats contructor.

parent f9d7aef5
......@@ -89,8 +89,8 @@ MemBlock* RecallMemoryManager::getFreeBlock() {
// RecallMemoryManager::~RecallMemoryManager
//------------------------------------------------------------------------------
void RecallMemoryManager::releaseBlock(MemBlock* mb) {
m_lc.pushOrReplace(log::Param("blockId", mb->m_memoryBlockId));
m_lc.log(LOG_DEBUG, "RecallMemoryManager A block has been released");
//m_lc.pushOrReplace(log::Param("blockId", mb->m_memoryBlockId));
//m_lc.log(LOG_DEBUG, "RecallMemoryManager A block has been released");
mb->reset();
m_freeBlocks.push(mb);
}
......
......@@ -63,8 +63,8 @@ namespace tapeserver {
/** Constructor: all defaults are zero */
SessionStats(): mountTime(0.0), positionTime(0.0), checksumingTime(0.0),
transferTime(0.0), flushTime(0.0), unloadTime(0.0), unmountTime(0.0),
waitDataTime(0.0), waitInstructionsTime(0.0), waitReportingTime(0.0),
dataVolume(0), headerVolume(0), filesCount(0) {}
waitDataTime(0.0), waitFreeMemoryTime(0.0), waitInstructionsTime(0.0),
waitReportingTime(0.0), dataVolume(0), headerVolume(0), filesCount(0) {}
/** Accumulate contents of another stats block */
void add(const SessionStats& other) {
mountTime += other.mountTime;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment