Commit b576bc2e authored by Leigh Stoller's avatar Leigh Stoller

Second attempt at fixing datastore bug.

parent b17b4f41
......@@ -2702,11 +2702,17 @@ sub CopyDataStore($$$;$)
# From the template itself.
my $exptidx;
my $instance = (defined($replay_instance) ? $replay_instance : $self);
TBExptIDX($instance->template()->pid(),
$instance->template()->eid(), \$exptidx)
or return -1;
if (defined($replay_instance)) {
TBExptIDX($replay_instance->pid(),
$replay_instance->eid(), \$exptidx)
or return -1;
}
else {
TBExptIDX($self->template()->pid(),
$self->template()->eid(), \$exptidx)
or return -1;
}
if (! -e $to_path) {
Template::mysystem("mkdir -p $to_path") == 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment