Commit 8d81f23a authored by Kirk Webb's avatar Kirk Webb

Add 'exported' column to 'blockstores' table.

Will be used to explicitly mark which blockstores should be made available to
other nodes.
parent 561f17aa
......@@ -199,6 +199,7 @@ CREATE TABLE `blockstores` (
`type` varchar(30) NOT NULL default '',
`role` enum('element','compound') NOT NULL default 'element',
`total_size` int(10) unsigned NOT NULL default '0',
`exported` tinyint(1) NOT NULL default '0',
`inception` datetime default NULL,
PRIMARY KEY (`bsidx`),
UNIQUE KEY nidbid (`node_id`,`bs_id`)
......
#
# Add 'exported' column to 'blockstores' table
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("blockstores", "exported")) {
DBQueryFatal("alter table blockstores add `exported` tinyint(1) " .
" NOT NULL default '0' after total_size");
}
return 0;
}
1;
Markdown is supported
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