fix for bug 4062: add autocommit=0 when opening the nodelist table

This commit is contained in:
ligc 2014-04-14 16:09:08 -05:00
parent 290b28a5be
commit 414d609d48

4
perl-xCAT/xCAT/TableUtils.pm Normal file → Executable file
View File

@ -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;