s3:registry: tighten the subkey loop in reg_deletekey_recursive()
commit60911e9c61f5f54c162c0fd66dd0c743a1506a04
authorMichael Adam <obnox@samba.org>
Thu, 26 Feb 2009 01:59:07 +0000 (26 02:59 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 27 Mar 2009 13:15:48 +0000 (27 14:15 +0100)
tree6553c7bf005bfa2048d6346e433df22da5f2fa28
parent5fd43b9399250b4d4946db6c97f3cad3fdc18f72
s3:registry: tighten the subkey loop in reg_deletekey_recursive()

and loop from the end to the beginning so that we don't need
to rehash the subkeys...

This gets "net conf drop" with 2000 shares down to 14 seconds
on my box.

Michael

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit db367c32756fcdf669a2ea7dad51d4daf40770e0)
source/registry/reg_api.c