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
This commit is contained in:
		@@ -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.";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user