s3:registry: tighten the subkey loop in reg_deletekey_recursive()
commitdb367c32756fcdf669a2ea7dad51d4daf40770e0
authorMichael Adam <obnox@samba.org>
Thu, 26 Feb 2009 01:59:07 +0000 (26 02:59 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 19 Mar 2009 11:12:13 +0000 (19 12:12 +0100)
tree538053ad75ed5bc7fa3a2a8bde7e4a175a4114e8
parent0045eb93bfb8285bcf8165b9cb2c39ade59a0782
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>
source/registry/reg_api.c