getobjdefs: only the node type has the special case for performance enhance
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4943 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
116950af27
commit
0cb7ef99f2
@ -407,11 +407,13 @@ sub getobjdefs
|
||||
{
|
||||
next;
|
||||
}
|
||||
# skip the attributes that does not needed
|
||||
if (scalar(@attrs) > 0 && !grep(/^$attr$/, @attrs)) {
|
||||
next;
|
||||
}
|
||||
|
||||
# skip the attributes that does not needed for node type
|
||||
if ($getnodes) {
|
||||
if (scalar(@attrs) > 0 && !grep(/^$attr$/, @attrs)) {
|
||||
next;
|
||||
}
|
||||
}
|
||||
|
||||
# OK - get the info needed to access the DB table
|
||||
# - i.e. table name, key name, attr names
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user