Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
843ee94b
Commit
843ee94b
authored
Jan 07, 2011
by
Leigh B Stoller
Browse files
Minor fix to slice locking.
parent
cea32f54
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniSlice.pm.in
View file @
843ee94b
...
...
@@ -191,7 +191,13 @@ sub Create($$$$;$$)
if
(
! DBQueryWarn("insert into geni_slices set " .
join
(
","
,
@
insert_data
)));
return
GeniSlice
->
Lookup
($
idx
);
my
$
slice
=
GeniSlice
->
Lookup
($
idx
);
return
undef
if
(
!defined($slice));
$
slice
->{
'LOCKED'
}
=
$$
if
(
defined
($
lock
)
&&
$
lock
);
return
$
slice
;
}
#
accessors
sub
field
($$)
{
return
((
! ref($_[0])) ? -1 : $_[0]->{'SLICE'}->{$_[1]}); }
...
...
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