summaryrefslogtreecommitdiff
path: root/source4/winbind/wb_sid2uid.c
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2011-11-14 18:53:30 +0100
committerMatthieu Patou <mat@matws.net>2011-12-19 11:49:19 +0100
commit55af1a7cf78c2a04ec82dc5a3bdcaedd846dd3fc (patch)
treee87ea15c3f782315ccf25983cbaea38e4d3f1ea3 /source4/winbind/wb_sid2uid.c
parente34fe4dcb60d2fbf7d805fc348d3a25d2d8950b7 (diff)
downloadsamba-55af1a7cf78c2a04ec82dc5a3bdcaedd846dd3fc.tar.gz
samba-55af1a7cf78c2a04ec82dc5a3bdcaedd846dd3fc.tar.bz2
samba-55af1a7cf78c2a04ec82dc5a3bdcaedd846dd3fc.zip
s4-drs: avoid calling unecesserly ldb_msg_find_attr_as_* as this call in unefficient
Current implementation of ldb_msg_find_attr_as_* iterate on the list of attributes returned by the search and make a string comparison. As we sorting the array of messages / guids we tend to call this function many times. By storing the GUID and the USN in a separate structure we are sure to call this function only once per attribute and object. Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4/winbind/wb_sid2uid.c')
0 files changed, 0 insertions, 0 deletions