fix for bug 4062: add autocommit=0 when opening the nodelist table
This commit is contained in:
parent
290b28a5be
commit
414d609d48
4
perl-xCAT/xCAT/TableUtils.pm
Normal file → Executable file
4
perl-xCAT/xCAT/TableUtils.pm
Normal file → Executable 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;
|
||||
|
Loading…
Reference in New Issue
Block a user