4.1.4.2.11 LookupAttr

 procedure LookupAttr(
   flags: DWORD,
   att: ATTRTYP,
   attrValue: unicodestring): set of DSName

Informative summary of behavior: The LookupAttr procedure is a helper function that looks up an object in an NC replica based on an attributeName=attributeValue criterion. It returns the set of objects that match the criterion.

  
 rt: set of DSName
  
  
 if DS_NAME_FLAG_GCVERIFY in flags or IsGC() then
   rt := select all O from all 
         where attrValue in GetAttrVals(O, att, false)
 else
   rt := select all O from subtree DefaultNC() 
         where attrValue in GetAttrVals(O, att, false)
 endif
 return rt
Show: