fix for bug 3922: backport 2.8 and 2.9 fix, do not use autocommit=0 when reading tables

This commit is contained in:
ligc 2013-12-03 13:45:16 +08:00
parent 0b639cb5c2
commit 63b0515072

2
perl-xCAT/xCAT/DBobjUtils.pm Normal file → Executable file
View File

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