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
4a2668a8
Commit
4a2668a8
authored
Oct 25, 2014
by
Leigh B Stoller
Browse files
Add locked() and uuid() methods.
parent
2978954d
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/Lease.pm.in
View file @
4a2668a8
...
...
@@ -193,6 +193,7 @@ sub mysystem($)
#
Accessors
#
sub
lease_id
($)
{
return
$
_
[
0
]->{
'DBROW'
}->{
'lease_id'
};
}
sub
uuid
($)
{
return
$
_
[
0
]->{
'DBROW'
}->{
'uuid'
};
}
sub
pid
($)
{
return
$
_
[
0
]->{
'DBROW'
}->{
'pid'
};
}
sub
idx
($)
{
return
$
_
[
0
]->{
'DBROW'
}->{
'lease_idx'
};
}
sub
lease_idx
($)
{
return
$
_
[
0
]->
idx
();
}
...
...
@@ -207,6 +208,7 @@ sub state($) {return $_[0]->{'DBROW'}->{'state'}; }
sub
statestamp
($)
{
return
str2time
($
_
[
0
]->{
'DBROW'
}->{
'statestamp'
});
}
sub
renewals
($)
{
return
$
_
[
0
]->{
'DBROW'
}->{
'renewals'
};
}
sub
locktime
($)
{
return
str2time
($
_
[
0
]->{
'DBROW'
}->{
'locked'
});
}
sub
locked
($)
{
return
$
_
[
0
]->{
'DBROW'
}->{
'locked'
};
}
sub
lockpid
($)
{
return
$
_
[
0
]->{
'DBROW'
}->{
'locker_pid'
};
}
#
...
...
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