diff options
author | Gregor Beck <gbeck@sernet.de> | 2011-08-01 15:27:46 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-08-08 15:27:07 +0200 |
commit | 356ed8644c0099a70ece5b7d5104662454d03ef8 (patch) | |
tree | f74f3763b3167d197adc5a74ab511672218a470c /source3/include | |
parent | db06b61a1d3d38140578c004eb9d6cb3243d2870 (diff) | |
download | samba-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/include')
-rw-r--r-- | source3/include/registry.h | 2 |
1 files changed, 1 insertions, 1 deletions
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, |