295 403 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# Add busy bit to images table. Used by create_image to mark an
# image as being in the process of a snapshot.
#
use strict;
use libdb;

sub DoUpdate($$$)
{
    my ($dbhandle, $dbname, $version) = @_;
    
    if (! DBSlotExists("images", "locked")) {
	DBQueryFatal("alter table images add ".
		     "  `locked` datetime default NULL");
    }
    return 0;
}
1;

# Local Variables:
# mode:perl
# End: