dsdb-operational: rework the loop for attribute removal
authorMatthieu Patou <mat@matws.net>
Fri, 28 Dec 2012 02:29:49 +0000 (18:29 -0800)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 8 Feb 2013 04:06:40 +0000 (15:06 +1100)
commit2dc9c072cbb9b857bf52e229573d92c9a70bdcf6
tree126e33150fefa30170433b86a2b9f7b79acd894d
parent13b481594585cdb079dcf9b8cf892f5094f44a16
dsdb-operational: rework the loop for attribute removal

Instead of doing ldb_in_list size(operational_remove) * (attrs_user +
attr_searched) * number of entries times to get the list of attributes to remove we construct this
list before the search and then use it for every entries.

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/operational.c