From 356ed8644c0099a70ece5b7d5104662454d03ef8 Mon Sep 17 00:00:00 2001 From: Gregor Beck Date: Mon, 1 Aug 2011 15:27:46 +0200 Subject: s3:registry avoid updating keys which are going to be deleted in reg_deletekey_recursive this changes the complexity from O(n^2) to O(n) and reduces the time of a 'net conf drop' with 10000 shares from 6min to 1.5s Signed-off-by: Michael Adam --- source3/registry/reg_backend_smbconf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/registry/reg_backend_smbconf.c') diff --git a/source3/registry/reg_backend_smbconf.c b/source3/registry/reg_backend_smbconf.c index 912f5eb1bf..11abb9cc66 100644 --- a/source3/registry/reg_backend_smbconf.c +++ b/source3/registry/reg_backend_smbconf.c @@ -42,9 +42,9 @@ static WERROR smbconf_create_subkey(const char *key, const char *subkey) return regdb_ops.create_subkey(key, subkey); } -static WERROR smbconf_delete_subkey(const char *key, const char *subkey) +static WERROR smbconf_delete_subkey(const char *key, const char *subkey, bool lazy) { - return regdb_ops.delete_subkey(key, subkey); + return regdb_ops.delete_subkey(key, subkey, lazy); } static int smbconf_fetch_values(const char *key, struct regval_ctr *val) -- cgit