Commit f287f157 authored by Robert Ricci's avatar Robert Ricci
Browse files

Added 'updated' field to the images table, which is a timestamp

indicating when the image was last updated. This gets updated by
create_image .

The hope is that it will give us some idea of which revision of
our standard images custom images are based off of.
parent a08d6dcc
......@@ -282,6 +282,7 @@ CREATE TABLE images (
load_busy tinyint(4) NOT NULL default '0',
ezid tinyint(4) NOT NULL default '0',
shared tinyint(4) NOT NULL default '0',
updated datetime default NULL,
PRIMARY KEY (imagename,pid)
......@@ -183,6 +183,13 @@ open(FILE, "> $filename") or
close(FILE) or
die("Could not truncate $filename: $!");
# Record when this image was updated, so that we can figure out which
# revision of the testbed image it was based off.
DBQueryFatal("update images set updated=now() where ".
"pid='$imagepid' and imagename='$imagename'");
# Okay, we want to build up a command line that will run the script on
# on the client node. We use the imageid description to determine what
Supports Markdown
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