Try to do more reuse of nodelist objects in db worker
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12609 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
e2dba9bfb8
commit
775bcb5b9a
@ -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…
x
Reference in New Issue
Block a user