Commit 9d679d05 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Minor fix to prevent stats records from getting deleted if an

experiment fails to start or preload.
parent d7f2050d
......@@ -256,8 +256,10 @@ sub fatal($)
# at this point, no point in keeping the record. Just a waste of
# space.
#
DBQueryWarn("DELETE from experiment_stats ".
"WHERE eid='$eid' and pid='$pid'");
if (defined($idx) && $idx) {
DBQueryWarn("DELETE from experiment_stats ".
"WHERE eid='$eid' and pid='$pid' and idx=$idx");
}
exit(-1);
}
......
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