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/include/registry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/include') diff --git a/source3/include/registry.h b/source3/include/registry.h index c87b89af7b..f7a537ed0b 100644 --- a/source3/include/registry.h +++ b/source3/include/registry.h @@ -45,7 +45,7 @@ struct registry_ops { int (*fetch_values) ( const char *key, struct regval_ctr *val ); bool (*store_subkeys)( const char *key, struct regsubkey_ctr *subkeys ); WERROR (*create_subkey)(const char *key, const char *subkey); - WERROR (*delete_subkey)(const char *key, const char *subkey); + WERROR (*delete_subkey)(const char *key, const char *subkey, bool lazy); bool (*store_values)( const char *key, struct regval_ctr *val ); bool (*reg_access_check)( const char *keyname, uint32 requested, uint32 *granted, -- cgit