From 414d609d48d1b71e73a125a9f26a594c6e211313 Mon Sep 17 00:00:00 2001 From: ligc Date: Mon, 14 Apr 2014 16:09:08 -0500 Subject: [PATCH] fix for bug 4062: add autocommit=0 when opening the nodelist table --- perl-xCAT/xCAT/TableUtils.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 perl-xCAT/xCAT/TableUtils.pm diff --git a/perl-xCAT/xCAT/TableUtils.pm b/perl-xCAT/xCAT/TableUtils.pm old mode 100644 new mode 100755 index bf3adfef3..69599d1fd --- a/perl-xCAT/xCAT/TableUtils.pm +++ b/perl-xCAT/xCAT/TableUtils.pm @@ -1177,7 +1177,9 @@ sub getAppStatus my ($class, $nodes_ref, $application) = @_; my @nodes = @$nodes_ref; - my $nltab = xCAT::Table->new('nodelist'); + # FIXME: why autocommit matters for a read-only subroutine getNodesAttribs? + # but could not get the appstatus without the autocommit=0 + my $nltab = xCAT::Table->new('nodelist', -autocommit => 0); my $nodeappstat = $nltab->getNodesAttribs(\@nodes,['appstatus']); my $ret_nodeappstat;