summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-02-25 09:53:16 +0100
committerMichael Adam <obnox@samba.org>2009-02-26 13:22:54 +0100
commit0b22f8b99c0291f2e45166124358844127fb8edf (patch)
tree9a933077726a05b1c69fd0c178639e3a1307139e /source3/include
parent149d94dd8f5513af9f75d568507c880c63b9187e (diff)
downloadsamba-0b22f8b99c0291f2e45166124358844127fb8edf.tar.gz
samba-0b22f8b99c0291f2e45166124358844127fb8edf.tar.bz2
samba-0b22f8b99c0291f2e45166124358844127fb8edf.zip
s3:registry: hash the list of subkeys in the regsubkey_ctr
This removes many loops over all the arrays (from regsubkey_ctr_key_exists) and thus reduces "net conf drop" from 1m55 to 48seconds and "net conf import" from 1m55 to 58 seconds for 2000 shares on my box. Michael
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 4d5e2b5a22..2a99b4af62 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -5133,7 +5133,7 @@ WERROR regsubkey_ctr_init(TALLOC_CTX *mem_ctx, struct regsubkey_ctr **ctr);
WERROR regsubkey_ctr_set_seqnum(struct regsubkey_ctr *ctr, int seqnum);
int regsubkey_ctr_get_seqnum(struct regsubkey_ctr *ctr);
WERROR regsubkey_ctr_addkey( struct regsubkey_ctr *ctr, const char *keyname );
-int regsubkey_ctr_delkey( struct regsubkey_ctr *ctr, const char *keyname );
+WERROR regsubkey_ctr_delkey( struct regsubkey_ctr *ctr, const char *keyname );
bool regsubkey_ctr_key_exists( struct regsubkey_ctr *ctr, const char *keyname );
int regsubkey_ctr_numkeys( struct regsubkey_ctr *ctr );
char* regsubkey_ctr_specific_key( struct regsubkey_ctr *ctr, uint32 key_index );