support assignment of tablespace on Table create for DB2 and put the auditlog and eventlog in the 32K tablespace

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9442 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2011-05-01 11:42:23 +00:00
parent f88f8cae5b
commit 6163d15628
2 changed files with 8 additions and 0 deletions

View File

@ -937,6 +937,7 @@ eventlog => {
types => {
recid => 'INTEGER AUTO_INCREMENT',
},
tablespace =>'XCATTBS32K',
table_desc => 'Stores the events occurred.',
descriptions => {
recid => 'The record id.',
@ -962,6 +963,7 @@ auditlog => {
types => {
recid => 'INTEGER AUTO_INCREMENT',
},
tablespace =>'XCATTBS32K',
table_desc => ' Audit Data log.',
descriptions => {
recid => 'The record id.',

View File

@ -480,6 +480,12 @@ sub buildcreatestmt
if ($xcatcfg =~ /^mysql:/) { #for mysql
$retv .= " ENGINE=$descr->{engine} ";
}
}
# allow tablespace change for DB2
if ($descr->{tablespace}) {
if ($xcatcfg =~ /^DB2:/) { #for DB2
$retv .= " in $descr->{tablespace} ";
}
}
#print "retv=$retv\n";
return $retv;