Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
88d3cd60
Commit
88d3cd60
authored
Dec 06, 2005
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Next round of DB changes for disk state saving.
parent
abfbb5d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
sql/database-create.sql
sql/database-create.sql
+3
-0
sql/database-migrate.txt
sql/database-migrate.txt
+11
-0
No files found.
sql/database-create.sql
View file @
88d3cd60
...
@@ -407,6 +407,7 @@ CREATE TABLE experiments (
...
@@ -407,6 +407,7 @@ CREATE TABLE experiments (
paniced
tinyint
(
1
)
NOT
NULL
default
'0'
,
paniced
tinyint
(
1
)
NOT
NULL
default
'0'
,
panic_date
datetime
default
NULL
,
panic_date
datetime
default
NULL
,
delay_capacity
tinyint
(
3
)
unsigned
default
NULL
,
delay_capacity
tinyint
(
3
)
unsigned
default
NULL
,
savedisk
tinyint
(
1
)
NOT
NULL
default
'0'
,
locpiper_pid
int
(
11
)
default
'0'
,
locpiper_pid
int
(
11
)
default
'0'
,
locpiper_port
int
(
11
)
default
'0'
,
locpiper_port
int
(
11
)
default
'0'
,
PRIMARY
KEY
(
eid
,
pid
),
PRIMARY
KEY
(
eid
,
pid
),
...
@@ -1443,6 +1444,8 @@ CREATE TABLE partitions (
...
@@ -1443,6 +1444,8 @@ CREATE TABLE partitions (
node_id
varchar
(
32
)
NOT
NULL
default
''
,
node_id
varchar
(
32
)
NOT
NULL
default
''
,
partition
tinyint
(
4
)
NOT
NULL
default
'0'
,
partition
tinyint
(
4
)
NOT
NULL
default
'0'
,
osid
varchar
(
35
)
default
NULL
,
osid
varchar
(
35
)
default
NULL
,
imageid
varchar
(
45
)
default
NULL
,
imagepid
varchar
(
12
)
NOT
NULL
default
''
,
PRIMARY
KEY
(
node_id
,
partition
)
PRIMARY
KEY
(
node_id
,
partition
)
)
TYPE
=
MyISAM
;
)
TYPE
=
MyISAM
;
...
...
sql/database-migrate.txt
View file @
88d3cd60
...
@@ -2892,3 +2892,14 @@ last_net_act,last_cpu_act,last_ext_act);
...
@@ -2892,3 +2892,14 @@ last_net_act,last_cpu_act,last_ext_act);
create_time datetime default NULL,
create_time datetime default NULL,
PRIMARY KEY (node_id)
PRIMARY KEY (node_id)
) TYPE=MyISAM;
) TYPE=MyISAM;
4.19: Infrastructure for disk state saving. Add imageid and imagepid
fields to partitions table to track what image is loaded on the disk
and savedisk field in experiments table.
alter table partitions add imageid varchar(45) default NULL \
after osid;
alter table partitions add imagepid varchar(12) NOT NULL default '' \
after imageid;
alter table experiments add savedisk tinyint(1) NOT NULL default 0 \
after delay_capacity;
Write
Preview
Markdown
is supported
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