Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
3a2a21f1
Commit
3a2a21f1
authored
May 08, 2015
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug Fix: Couple of fixes to Delete() requested by Chuck Cranor.
parent
8ef644d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
db/Image.pm.in
db/Image.pm.in
+12
-1
No files found.
db/Image.pm.in
View file @
3a2a21f1
...
...
@@ -1180,8 +1180,19 @@ sub Delete($;$)
or goto bad;
}
if ($self->ezid()) {
DBQueryWarn("delete from os_submap where osid='
$
imageid
'")
# Cannot be a child or parent if I be dead.
DBQueryWarn("delete from os_submap where ".
" osid='
$
imageid
' or parent_osid='
$
imageid
'")
or goto bad;
# Ditto.
DBQueryWarn("update os_info_versions set def_parentosid=null ".
" where def_parentosid='
$
imageid
' and deleted is null")
or goto bad;
# Ditto
DBQueryWarn("update os_info_versions set nextosid=null ".
" where nextosid='
$
imageid
' and deleted is null")
or goto bad;
DBQueryWarn("delete from os_info where osid='
$
imageid
'")
or goto bad;
if ($purge || !$DOPROVENANCE) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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