diff --git a/perl-xCAT/xCAT/DBobjUtils.pm b/perl-xCAT/xCAT/DBobjUtils.pm index dbfd2b7f3..af739198e 100644 --- a/perl-xCAT/xCAT/DBobjUtils.pm +++ b/perl-xCAT/xCAT/DBobjUtils.pm @@ -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.";