Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
427535e3
Commit
427535e3
authored
Jul 09, 2014
by
Eric Cano
Browse files
Fixed uninitialized variable in SessionStats contructor.
parent
f9d7aef5
Changes
2
Hide whitespace changes
Inline
Side-by-side
castor/tape/tapeserver/daemon/RecallMemoryManager.cpp
View file @
427535e3
...
...
@@ -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
);
}
...
...
castor/tape/tapeserver/daemon/SessionStats.hpp
View file @
427535e3
...
...
@@ -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
),
wait
Instructions
Time
(
0.0
),
wait
Reporting
Time
(
0.0
),
dataVolume
(
0
),
headerVolume
(
0
),
filesCount
(
0
)
{}
waitDataTime
(
0.0
),
wait
FreeMemory
Time
(
0.0
),
wait
Instructions
Time
(
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment