From 6163d1562895aae14ad36b3f7eac5e51e08ee292 Mon Sep 17 00:00:00 2001 From: lissav Date: Sun, 1 May 2011 11:42:23 +0000 Subject: [PATCH] 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 --- perl-xCAT/xCAT/Schema.pm | 2 ++ perl-xCAT/xCAT/Table.pm | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/perl-xCAT/xCAT/Schema.pm b/perl-xCAT/xCAT/Schema.pm index ab40f1c2e..565d43243 100644 --- a/perl-xCAT/xCAT/Schema.pm +++ b/perl-xCAT/xCAT/Schema.pm @@ -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.', diff --git a/perl-xCAT/xCAT/Table.pm b/perl-xCAT/xCAT/Table.pm index 20c308a45..0e5e66271 100644 --- a/perl-xCAT/xCAT/Table.pm +++ b/perl-xCAT/xCAT/Table.pm @@ -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;