Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gaudi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Gaudi
Gaudi
Merge requests
!508
Fix bug in DataSvcHelpers::RegistryEntry::remove introduced in
!474
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix bug in DataSvcHelpers::RegistryEntry::remove introduced in
!474
graven/Gaudi:fix-datasvchelpers-registryentry-remove
into
master
Overview
2
Commits
1
Pipelines
6
Changes
1
Merged
Gerhard Raven
requested to merge
graven/Gaudi:fix-datasvchelpers-registryentry-remove
into
master
7 years ago
Overview
2
Commits
1
Pipelines
6
Changes
1
Expand
0
0
Merge request reports
Compare
version 3
version 5
71ce8e87
7 years ago
version 4
cb465065
7 years ago
version 3
fb966049
7 years ago
version 2
4745bece
7 years ago
version 1
e91f2263
7 years ago
master (base)
and
version 4
latest version
20a68d64
1 commit,
7 years ago
version 5
71ce8e87
1 commit,
7 years ago
version 4
cb465065
1 commit,
7 years ago
version 3
fb966049
1 commit,
7 years ago
version 2
4745bece
1 commit,
7 years ago
version 1
e91f2263
1 commit,
7 years ago
Show latest version
1 file
+
7
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
GaudiKernel/src/Lib/RegistryEntry.cpp
+
7
−
7
Options
@@ -151,15 +151,15 @@ long DataSvcHelpers::RegistryEntry::remove( IRegistry* obj )
}
/// Remove entry from data store
long
DataSvcHelpers
::
RegistryEntry
::
remove
(
boost
::
string_ref
nam
)
long
DataSvcHelpers
::
RegistryEntry
::
remove
(
boost
::
string_ref
path
)
{
if
(
nam
.
front
()
!=
SEPARATOR
)
{
std
::
string
prefixed
{
SEPARATOR
};
prefixed
.
append
(
nam
.
data
(),
nam
.
size
()
);
return
remove
(
prefixed
);
}
if
(
path
.
front
()
==
SEPARATOR
)
path
.
remove_prefix
(
1
);
// if this object is not present, this is an error....
auto
i
=
std
::
find_if
(
m_store
.
begin
(),
m_store
.
end
(),
[
&
](
const
auto
*
j
)
{
return
j
->
name
()
==
nam
;
}
);
auto
i
=
std
::
find_if
(
m_store
.
begin
(),
m_store
.
end
(),
[
&
](
const
auto
*
j
)
{
boost
::
string_ref
name
{
j
->
name
()};
name
.
remove_prefix
(
1
);
return
name
==
path
;
}
);
if
(
i
==
m_store
.
end
()
)
return
StatusCode
::
FAILURE
;
remove
(
*
i
);
return
StatusCode
::
SUCCESS
;
Loading