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:
daniceexi 2010-01-13 03:21:50 +00:00
parent 116950af27
commit 0cb7ef99f2

View File

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