fix for bug 3922: backport 2.8 and 2.9 fix, do not use autocommit=0 when reading tables
This commit is contained in:
parent
0b639cb5c2
commit
63b0515072
2
perl-xCAT/xCAT/DBobjUtils.pm
Normal file → Executable file
2
perl-xCAT/xCAT/DBobjUtils.pm
Normal file → Executable 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.";
|
||||
|
Loading…
Reference in New Issue
Block a user