mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
s3:registry: use create_reg_subkey() in reg_createkey().
Instead of calling store_reg_keys() On my box, importing 2000 shares into an empty smbconf key now takes some 32 seconds. Michael
This commit is contained in:
parent
d73dafb5fe
commit
4b444e4ac4
@ -524,14 +524,8 @@ WERROR reg_createkey(TALLOC_CTX *ctx, struct registry_key *parent,
|
||||
err = fill_subkey_cache(create_parent);
|
||||
if (!W_ERROR_IS_OK(err)) goto done;
|
||||
|
||||
err = regsubkey_ctr_addkey(create_parent->subkeys, path);
|
||||
if (!W_ERROR_IS_OK(err)) goto done;
|
||||
|
||||
if (!store_reg_keys(create_parent->key, create_parent->subkeys)) {
|
||||
TALLOC_FREE(create_parent->subkeys);
|
||||
err = WERR_REG_IO_FAILURE;
|
||||
goto done;
|
||||
}
|
||||
err = create_reg_subkey(key->key, path);
|
||||
W_ERROR_NOT_OK_GOTO_DONE(err);
|
||||
|
||||
/*
|
||||
* Now open the newly created key
|
||||
|
Loading…
x
Reference in New Issue
Block a user