s3:registry: tighten the subkey loop in reg_deletekey_recursive()
authorMichael Adam <obnox@samba.org>
Thu, 26 Feb 2009 01:59:07 +0000 (02:59 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 26 Feb 2009 12:22:56 +0000 (13:22 +0100)
commit2f4b8213206aebd7b101b9623f7cd0786a65f310
treed29869e4141189f38bfaf768d303075a7437855d
parent270ab5544b9e2a26e00ccb4e27e24996bf2e9238
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
source3/registry/reg_api.c