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
1bea59a1
Commit
1bea59a1
authored
May 31, 2003
by
Mac Newbold
Browse files
Make sure and initialize expt_swap_uid when creating an expt.
parent
1a848c56
Changes
2
Hide whitespace changes
Inline
Side-by-side
tbsetup/batchexp.in
View file @
1bea59a1
...
...
@@ -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
");
...
...
www/beginexp.php3
View file @
1bea59a1
...
...
@@ -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.
...
...
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