dsdb-descriptor: Do not do a subtree search unless we have child entries
commit75ef73f5f912681bf7697ac37c76c0f2ac7ae30b
authorAndrew Bartlett <abartlet@samba.org>
Sun, 23 Jun 2013 09:47:35 +0000 (23 19:47 +1000)
committerKarolin Seeger <kseeger@samba.org>
Mon, 5 Aug 2013 18:25:08 +0000 (5 20:25 +0200)
tree2242fd75bf6ab10514398059055a6506e59669e6
parentc4c3d7ffc8b136ddfd63b12e52f2e59af2058b0c
dsdb-descriptor: Do not do a subtree search unless we have child entries

This avoids a subtree search here in most cases where an object is deleted.

Andrew Bartlett

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 03b44d26fd17761675fe33ab29e8f325f59d8a5c)
source4/dsdb/samdb/ldb_modules/descriptor.c