s4:dsdb - enhance "get_last_structural_class()" for optimisations
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 25 Mar 2012 21:25:01 +0000 (23:25 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 25 Mar 2012 22:57:29 +0000 (00:57 +0200)
commit206421c8fd28ca4bb6375b97e106d3531f1a5559
tree2fc4076ec37cc15e916801aa1873f09f22187a75
parent0f8ffa9ce1777d0b368eb765a7f69f93e68118bd
s4:dsdb - enhance "get_last_structural_class()" for optimisations

If the objectclass entry has been sorted before we are able to determine
the (last) structural or 88 object class in constant time.

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/descriptor.c
source4/dsdb/samdb/ldb_modules/objectclass.c
source4/dsdb/samdb/ldb_modules/schema.c