fix for defect 3168861

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8790 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2011-02-06 11:35:12 +00:00
parent fb9ce3ab30
commit 16b8111ea2

View File

@ -843,9 +843,10 @@ sub new
buildcreatestmt($self->{tabname},
$xCAT::Schema::tabspec{$self->{tabname}},
$xcatcfg);
$self->{dbh}->do($str);
$self->{dbh}->commit; # commit the create
$self->{dbh}->do($str);
if (!$self->{dbh}->{AutoCommit}) {
$self->{dbh}->commit; # commit the create
}
}
} # end Generic DBI