summaryrefslogtreecommitdiff
path: root/source3/registry/reg_backend_smbconf.c
diff options
context:
space:
mode:
authorGregor Beck <gbeck@sernet.de>2011-08-01 15:27:46 +0200
committerMichael Adam <obnox@samba.org>2011-08-08 15:27:07 +0200
commit356ed8644c0099a70ece5b7d5104662454d03ef8 (patch)
treef74f3763b3167d197adc5a74ab511672218a470c /source3/registry/reg_backend_smbconf.c
parentdb06b61a1d3d38140578c004eb9d6cb3243d2870 (diff)
downloadsamba-356ed8644c0099a70ece5b7d5104662454d03ef8.tar.gz
samba-356ed8644c0099a70ece5b7d5104662454d03ef8.tar.bz2
samba-356ed8644c0099a70ece5b7d5104662454d03ef8.zip
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 <obnox@samba.org>
Diffstat (limited to 'source3/registry/reg_backend_smbconf.c')
-rw-r--r--source3/registry/reg_backend_smbconf.c4
1 files changed, 2 insertions, 2 deletions
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)