Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
11faf82c
Commit
11faf82c
authored
4 years ago
by
Cedric Caffy
Browse files
Options
Downloads
Patches
Plain Diff
Try to fix the random valgrind error on MigrationReportPackerBadFile test
parent
46b3f387
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tapeserver/castor/tape/tapeserver/daemon/MigrationReportPacker.cpp
+10
-5
10 additions, 5 deletions
...r/castor/tape/tapeserver/daemon/MigrationReportPacker.cpp
with
10 additions
and
5 deletions
tapeserver/castor/tape/tapeserver/daemon/MigrationReportPacker.cpp
+
10
−
5
View file @
11faf82c
...
...
@@ -101,7 +101,8 @@ void MigrationReportPacker::reportFlush(drive::compressionStats compressStats, c
params
.
add
(
"type"
,
"ReportFlush"
);
lc
.
log
(
cta
::
log
::
DEBUG
,
"In MigrationReportPacker::reportFlush(), pushing a report."
);
cta
::
threading
::
MutexLocker
ml
(
m_producterProtection
);
m_fifo
.
push
(
new
ReportFlush
(
compressStats
));
std
::
unique_ptr
<
Report
>
rep
(
new
ReportFlush
(
compressStats
));
m_fifo
.
push
(
rep
.
release
());
}
//------------------------------------------------------------------------------
//reportTapeFull
...
...
@@ -111,7 +112,8 @@ void MigrationReportPacker::reportTapeFull(cta::log::LogContext & lc){
params
.
add
(
"type"
,
"ReportTapeFull"
);
lc
.
log
(
cta
::
log
::
DEBUG
,
"In MigrationReportPacker::reportTapeFull(), pushing a report."
);
cta
::
threading
::
MutexLocker
ml
(
m_producterProtection
);
m_fifo
.
push
(
new
ReportTapeFull
());
std
::
unique_ptr
<
Report
>
rep
(
new
ReportTapeFull
());
m_fifo
.
push
(
rep
.
release
());
}
//------------------------------------------------------------------------------
//reportEndOfSession
...
...
@@ -121,7 +123,8 @@ void MigrationReportPacker::reportEndOfSession(cta::log::LogContext & lc) {
params
.
add
(
"type"
,
"ReportEndofSession"
);
lc
.
log
(
cta
::
log
::
DEBUG
,
"In MigrationReportPacker::reportEndOfSession(), pushing a report."
);
cta
::
threading
::
MutexLocker
ml
(
m_producterProtection
);
m_fifo
.
push
(
new
ReportEndofSession
());
std
::
unique_ptr
<
Report
>
rep
(
new
ReportEndofSession
());
m_fifo
.
push
(
rep
.
release
());
}
//------------------------------------------------------------------------------
//reportEndOfSessionWithErrors
...
...
@@ -131,7 +134,8 @@ void MigrationReportPacker::reportEndOfSessionWithErrors(std::string msg,int err
params
.
add
(
"type"
,
"ReportEndofSessionWithErrors"
);
lc
.
log
(
cta
::
log
::
DEBUG
,
"In MigrationReportPacker::reportEndOfSessionWithErrors(), pushing a report."
);
cta
::
threading
::
MutexLocker
ml
(
m_producterProtection
);
m_fifo
.
push
(
new
ReportEndofSessionWithErrors
(
msg
,
errorCode
));
std
::
unique_ptr
<
Report
>
rep
(
new
ReportEndofSessionWithErrors
(
msg
,
errorCode
));
m_fifo
.
push
(
rep
.
release
());
}
//------------------------------------------------------------------------------
...
...
@@ -142,7 +146,8 @@ void MigrationReportPacker::reportTestGoingToEnd(cta::log::LogContext & lc){
params
.
add
(
"type"
,
"ReportTestGoingToEnd"
);
lc
.
log
(
cta
::
log
::
DEBUG
,
"In MigrationReportPacker::reportTestGoingToEnd(), pushing a report."
);
cta
::
threading
::
MutexLocker
ml
(
m_producterProtection
);
m_fifo
.
push
(
new
ReportTestGoingToEnd
());
std
::
unique_ptr
<
Report
>
rep
(
new
ReportTestGoingToEnd
());
m_fifo
.
push
(
rep
.
release
());
}
//------------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment