s4-acl: Changed the mechanism of attribute removal to speed it up.
authorNadezhda Ivanova <nivanova@samba.org>
Wed, 8 Dec 2010 10:12:34 +0000 (12:12 +0200)
committerNadezhda Ivanova <nivanova@samba.org>
Wed, 8 Dec 2010 11:00:27 +0000 (12:00 +0100)
commit2079a6d110ae12f12497605a03deae6720434a6c
tree393bef52a919c343a6bc6b93b3d4a77c6878f942
parentfe98b9aaebd57e3461fa2ac59a2924a6ef6f09fa
s4-acl: Changed the mechanism of attribute removal to speed it up.

Instead of using ldb_msg_remove_attr, now we are flagging the attributes to be removed,
and allocating the new elements array to be returned at once. This seems to decrease the
overhead by 50 percent.

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Wed Dec  8 12:00:27 CET 2010 on sn-devel-104
source4/dsdb/samdb/ldb_modules/acl_read.c