Skip to content
GitLab
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
5b34b83d
Commit
5b34b83d
authored
Oct 21, 2015
by
Daniele Kruse
Browse files
Fixed root entry fetching bug in OSDB
parent
c1155150
Changes
1
Hide whitespace changes
Inline
Side-by-side
scheduler/OStoreDB/OStoreDB.cpp
View file @
5b34b83d
...
...
@@ -655,6 +655,7 @@ void OStoreDB::deleteLogicalLibrary(const SecurityIdentity& requester,
const
std
::
string
&
name
)
{
RootEntry
re
(
m_objectStore
);
ScopedExclusiveLock
rel
(
re
);
re
.
fetch
();
// Check we are not deleting a non-empty library
auto
tpl
=
re
.
dumpTapePools
();
for
(
auto
tpp
=
tpl
.
begin
();
tpp
!=
tpl
.
end
();
tpp
++
)
{
...
...
@@ -671,7 +672,6 @@ void OStoreDB::deleteLogicalLibrary(const SecurityIdentity& requester,
throw
LibraryInUse
(
"In OStoreDB::deleteLogicalLibrary: trying to delete a library used by a tape."
);
}
}
re
.
fetch
();
re
.
removeLibrary
(
name
);
re
.
commit
();
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment