From 97473a8b09fecbf7c53c5c9564f25c8f9614d044 Mon Sep 17 00:00:00 2001 From: ligc Date: Thu, 11 Jul 2013 08:18:36 +0000 Subject: [PATCH] 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/trunk@16948 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/DBobjUtils.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.";