Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
a93f161d
Commit
a93f161d
authored
Jan 29, 2009
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some fixes to make sure that object are removed from the cache when
deleted, as for long running daemons.
parent
e38602a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
db/Experiment.pm.in
db/Experiment.pm.in
+13
-0
No files found.
db/Experiment.pm.in
View file @
a93f161d
...
@@ -744,6 +744,9 @@ sub Delete($;$)
...
@@ -744,6 +744,9 @@ sub Delete($;$)
DBQueryWarn("DELETE from experiments ".
DBQueryWarn("DELETE from experiments ".
"WHERE eid='
$
eid
' and pid='
$
pid
'");
"WHERE eid='
$
eid
' and pid='
$
pid
'");
# Delete from cache.
delete($experiments{"$exptidx"});
#
#
# Mark experiment destroyed. This is a backup to End() below.
# Mark experiment destroyed. This is a backup to End() below.
#
#
...
@@ -781,6 +784,16 @@ sub Delete($;$)
...
@@ -781,6 +784,16 @@ sub Delete($;$)
return 0;
return 0;
}
}
#
# Flush from our little cache, as for the expire daemon.
#
sub Flush($)
{
my ($self) = @_;
delete($experiments{$self->idx()});
}
#
#
# Add an input file to the template. The point of this is to reduce
# Add an input file to the template. The point of this is to reduce
# duplication by taking an md5 of the input file, and sharing that
# duplication by taking an md5 of the input file, and sharing that
...
...
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