Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Peter Sherwood
athena
Commits
ff913f6e
Commit
ff913f6e
authored
6 years ago
by
cranshaw
Browse files
Options
Downloads
Patches
Plain Diff
Someone nasty, but effective hack, to remove bad items added in
addItemObjects. Former-commit-id:
785e4b73
parent
3f744bca
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
Control/AthenaServices/src/AthenaOutputStream.cxx
+14
-6
14 additions, 6 deletions
Control/AthenaServices/src/AthenaOutputStream.cxx
with
14 additions
and
6 deletions
Control/AthenaServices/src/AthenaOutputStream.cxx
+
14
−
6
View file @
ff913f6e
...
...
@@ -614,16 +614,24 @@ void AthenaOutputStream::collectAllObjects() {
addItemObjects
(
*
i
);
folderclids
.
push_back
(
i
->
id
());
}
// FIXME This is a bruteforece hack to remove items erroneously
// added somewhere in the morass of the addItemObjects logic
IDataSelector
prunedList
;
for
(
auto
it
=
m_objects
.
begin
();
it
!=
m_objects
.
end
();
++
it
)
{
if
(
std
::
find
(
folderclids
.
begin
(),
folderclids
.
end
(),(
*
it
)
->
clID
())
=
=
folderclids
.
end
())
{
m_objects
.
erase
(
it
);
if
(
std
::
find
(
folderclids
.
begin
(),
folderclids
.
end
(),(
*
it
)
->
clID
())
!
=
folderclids
.
end
())
{
prunedList
.
push_back
(
*
it
);
// build new list that is correct
}
}
for
(
auto
it
=
m_objects
.
begin
();
it
!=
m_objects
.
end
();
++
it
)
{
if
(
std
::
find
(
folderclids
.
begin
(),
folderclids
.
end
(),(
*
it
)
->
clID
())
==
folderclids
.
end
())
{
ATH_MSG_ERROR
(
"Object found that was not in itemlist"
);
else
{
ATH_MSG_DEBUG
(
"Object "
<<
(
*
it
)
->
clID
()
<<
","
<<
(
*
it
)
->
name
()
<<
" found that was not in itemlist"
);
}
}
m_objects
.
clear
();
// clear previous list
//for (auto it = m_objects.begin(); it != m_objects.end(); ++it) {
for
(
auto
it
=
prunedList
.
begin
();
it
!=
prunedList
.
end
();
++
it
)
{
ATH_MSG_INFO
(
"GLARB "
<<
(
*
it
)
->
clID
()
<<
" "
<<
(
*
it
)
->
name
());
m_objects
.
push_back
(
*
it
);
// copy new into previous
}
}
//FIXME refactor: move this in folder. Treat as composite
...
...
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