Commit 1bea59a1 authored by Mac Newbold's avatar Mac Newbold

Make sure and initialize expt_swap_uid when creating an expt.

parent 1a848c56
......@@ -134,10 +134,11 @@ if ($query_result->numrows) {
# will recognize it.
#
if (! DBQueryWarn("INSERT INTO experiments ".
"(eid, pid, gid, expt_created, expt_expires, ".
" expt_name, expt_head_uid, state, priority, swappable) ".
"(eid, pid, gid, expt_created, expt_expires, expt_name, ".
" expt_head_uid,expt_swap_uid, state, priority, swappable) ".
"VALUES ('$eid', '$pid', '$gid', now(), '$expires', ".
"$description, '$dbuid', 'new', $priority, $swappable)")) {
"$description,'$dbuid', '$dbuid', 'new', $priority, ".
"$swappable)")) {
DBQueryWarn("unlock tables");
die("*** $0:\n".
" Database error inserting record for $pid/$eid!\n");
......
......@@ -700,10 +700,10 @@ if ($nonsfile) {
#
DBQueryFatal("INSERT INTO experiments ".
"(eid, pid, gid, expt_created, expt_expires, expt_name, ".
"expt_head_uid, state, shared) ".
"expt_head_uid, expt_swap_uid, state, shared) ".
"VALUES ('$exp_id', '$exp_pid', '$exp_gid', now(), ".
" '$exp_expires', ".
" '$exp_name', '$uid', '$exp_state', $exp_shared)");
" '$exp_expires', '$exp_name', ".
" '$uid', '$uid', '$exp_state', $exp_shared)");
#
# This is where the experiment hierarchy is going to be created.
......
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