Skip to content
GitLab
Menu
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
6c9a6948
Commit
6c9a6948
authored
Jul 07, 2000
by
Mac Newbold
Browse files
Renamed SW_Table to SW_table at Chris' request.
parent
2b4745e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
db/avail
View file @
6c9a6948
...
...
@@ -69,7 +69,7 @@ if (defined($args{"extras"})) {
#}
if
(
$img
)
{
$join
.=
"
left join SW_
T
able as c on a.node_id=c.node_id
";
$join
.=
"
left join SW_
t
able as c on a.node_id=c.node_id
";
$join
.=
"
left join disk_images as d on c.image_id=d.image_id
";
}
...
...
db/dbinit
View file @
6c9a6948
...
...
@@ -93,7 +93,7 @@ $cmd = "create table reserved (".
"
rsrv_time timestamp);
";
$sth
=
$dbh
->
query
(
$cmd
)
||
&failed
(
$cmd
,
$sth
->
errstr
);
$cmd
=
"
create table SW_
T
able (
"
.
$cmd
=
"
create table SW_
t
able (
"
.
"
node_id char(
$id_len
) NOT NULL PRIMARY KEY,
"
.
"
image_id char(
$id_len
) NOT NULL,
"
.
"
quick_clean tinyint,
"
.
...
...
@@ -217,7 +217,7 @@ foreach $n (1..40) {
$cmd
=
"
insert into nodes
"
.
"
(node_id,type) values ('tbpc
$n
','pc');
";
$sth
=
$dbh
->
query
(
$cmd
)
||
&failed
(
$cmd
,
$sth
->
errstr
)
&&
last
;
$cmd
=
"
insert into SW_
T
able (node_id,image_id) values
"
.
$cmd
=
"
insert into SW_
t
able (node_id,image_id) values
"
.
"
('tbpc
$n
','
"
.
(
$n
%
4
+
1
)
.
"
');
";
$sth
=
$dbh
->
query
(
$cmd
)
||
&failed
(
$cmd
,
$sth
->
errstr
)
&&
last
;
}
...
...
@@ -229,7 +229,7 @@ foreach $n (1..20) {
$cmd
=
"
insert into nodes
"
.
"
(node_id,type) values ('tbsh
$n
-
$m
','shark');
";
$sth
=
$dbh
->
query
(
$cmd
)
||
&failed
(
$cmd
,
$sth
->
errstr
)
&&
last
;
$cmd
=
"
insert into SW_
T
able (node_id,image_id) values
"
.
$cmd
=
"
insert into SW_
t
able (node_id,image_id) values
"
.
"
('tbsh
$n
-
$m
','
"
.
((
$n
-
1
)
/
10
+
5
)
.
"
');
";
$sth
=
$dbh
->
query
(
$cmd
)
||
&failed
(
$cmd
,
$sth
->
errstr
)
&&
last
;
}
...
...
Write
Preview
Supports
Markdown
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