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
master
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
latest version
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
1 file
+
7
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
GaudiKernel/src/Lib/RegistryEntry.cpp
+
7
−
5
Options
@@ -151,12 +151,14 @@ 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
)
nam
.
remove_prefix
(
1
);
auto
i
=
std
::
find_if
(
m_store
.
begin
(),
m_store
.
end
(),
[
&
](
const
auto
&
n
)
// skip leading SEPARATOR
{
return
n
->
name
().
compare
(
1
,
nam
.
size
(),
nam
.
data
(),
nam
.
size
()
)
==
0
;
}
);
if
(
path
.
front
()
==
SEPARATOR
)
path
.
remove_prefix
(
1
);
auto
i
=
std
::
find_if
(
m_store
.
begin
(),
m_store
.
end
(),
[
&
](
const
auto
*
j
)
{
boost
::
string_ref
name
{
j
->
name
()};
name
.
remove_prefix
(
1
);
// skip leading SEPARATOR
return
name
==
path
;
}
);
// if the requested object is not present, this is an error....
if
(
i
==
m_store
.
end
()
)
return
StatusCode
::
FAILURE
;
remove
(
*
i
);
Loading