Try to do more reuse of nodelist objects in db worker
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12608 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
5890139d47
commit
bb760cf069
@ -739,6 +739,10 @@ sub new
|
||||
return undef;
|
||||
}
|
||||
} else { #direct db access mode
|
||||
if ($opentables{$self->{tabname}}->{$self->{autocommit}}) { #if we are inside the db worker and asked to create a new table that is already open, just return a reference to that table
|
||||
#generally speaking, this should cause a lot of nodelists to be shared
|
||||
return $opentables{$self->{tabname}}->{$self->{autocommit}};
|
||||
}
|
||||
$self->{dbuser}="";
|
||||
$self->{dbpass}="";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user