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, 19 Mar 2009 17:04:01 +0000 (18:04 +0100)
commit3cb7291f76a14a8599973557077af34ef30f4ecf
treef9682a6a0a95ee5c3a4c296ce13d780f74dc2bbc
parent26ed7a73fc237944add17f101bec007e766027e1
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