fix for bug 3671: use autocommit => 1 instead of autocommit => 0 when opening a table

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16949 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2013-07-11 08:19:00 +00:00
parent eb102a0d36
commit f5d013dc48

View File

@ -200,7 +200,8 @@ sub getobjattrs
# list of object names
foreach my $table (keys %tableattrs) {
# open the table
my $thistable = xCAT::Table->new($table, -create => 1, -autocommit => 0);
# with autocommit => 0, it does not work on Ubuntu running mysql
my $thistable = xCAT::Table->new($table, -create => 1, -autocommit => 1);
if (!$thistable) {
my $rsp;
$rsp->{data}->[0] = "Could not open the \'$table\' table.";