Stefan Metzmacher
b934f509ed
lib/torture: fix depency to map_nt_error_from_unix()
...
This should fix the build on Mac OS 10
metze
2009-02-26 17:47:00 +01:00
Michael Adam
c5e062ed74
s3: fix the build JOB_STATUS_BLOCKED -> JOB_STATUS_BLOCKED_DEVQ
...
Günther, please check...
Michael
2009-02-26 14:35:27 +01:00
Stefan Metzmacher
3a1f24f286
tevent: add tevent_queue infrastructure
...
metze
2009-02-26 14:22:12 +01:00
Michael Adam
2f4b821320
s3:registry: tighten the subkey loop in reg_deletekey_recursive()
...
and loop from the end to the beginning so that we don't need
to rehash the subkeys...
This gets "net conf drop" with 2000 shares down to 14 seconds
on my box.
Michael
2009-02-26 13:22:56 +01:00
Michael Adam
270ab5544b
s3:registry: use delete_reg_subkey() in reg_deletekey()
...
This further speeds up net conf drop.
Michael
2009-02-26 13:22:55 +01:00
Michael Adam
ae8c584218
s3:registry: implement delete_subkey in the smbconf backend
...
delegating the call to the db backend
Michael
2009-02-26 13:22:55 +01:00
Michael Adam
b5fbe06d74
s3:registry: implement delete_subkey in the db backend
...
Michael
2009-02-26 13:22:55 +01:00
Michael Adam
97508eefb7
s3:registry: add a delete_subkey method to the backend ops.
...
This is to provide a more atomic means of deleting a subkey of a key.
Michael
2009-02-26 13:22:55 +01:00
Michael Adam
61bdfd09ed
s3:registry: refactor deletion of various subkey lists out of regdb_store_keys()
...
Micheal
2009-02-26 13:22:55 +01:00
Michael Adam
13ceeeedbc
s3:registry: streamline and cleanup regdb_set_secdesc() somewhat.
...
Michael
2009-02-26 13:22:55 +01:00
Michael Adam
2fb944bde1
s3:registry: refactor deletion of value/secdesc/subkey list tdb records out
...
of regdb_store_values().
Michael
2009-02-26 13:22:55 +01:00
Michael Adam
741e902888
s3:registry: streamline reg_deletekey() somewhat.
...
use W_ERROR_... macros and separate assignments from checks
Michael
2009-02-26 13:22:55 +01:00
Michael Adam
4b444e4ac4
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
2009-02-26 13:22:55 +01:00
Michael Adam
d73dafb5fe
s3:registry: implement create_subkey for the smbconf backend
...
by delegating to the db backend
Michael
2009-02-26 13:22:54 +01:00
Michael Adam
20e40d3b7d
s3:registry: implement create_subkey for the db backend.
...
Michael
2009-02-26 13:22:54 +01:00
Michael Adam
602bfeb360
s3:registry: add a create_subkey method to the backend ops.
...
This is to provide a more atomic means of adding a subkey of a key.
Michael
2009-02-26 13:22:54 +01:00
Michael Adam
51795b723e
libcli/util/werror.h: add macro W_ERROR_NOT_OK_GOTO(x, y)
...
a goto destination can be specified as a second parameter.
Michael
2009-02-26 13:22:54 +01:00
Michael Adam
6c197ffa30
s3: move definition of W_ERROR_NOT_OK_GOTO_DONE down to libcli/util/werror.h
...
Michael
2009-02-26 13:22:54 +01:00
Michael Adam
e026d217bf
s3:net rpc registry: use regsubkey_ctr_init() instead of using talloc directly.
...
Michael
2009-02-26 13:22:54 +01:00
Michael Adam
0b22f8b99c
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
2009-02-26 13:22:54 +01:00
Michael Adam
149d94dd8f
s3:registry: remove definition of regsubkey_ctr from the surface.
...
All access is now through accessor functions in reg_objects.c
This allows for performance tuning under the hood in the next step.
Michael
2009-02-26 13:22:53 +01:00
Michael Adam
d2fc3abeea
s3:profiles: use regsubkey_ctr_init() instead of using talloc directly.
...
Michael
2009-02-26 13:22:53 +01:00
Michael Adam
1ce0035abb
s3:registry: use regsubkey_ctr_init() in reg_eventlog.c
...
Michael
2009-02-26 13:22:53 +01:00
Michael Adam
b384d0d49d
s3:services_db: use regsubkey_ctr_init() instead of using talloc directly
...
Michael
2009-02-26 13:22:53 +01:00
Michael Adam
69be6f5c1d
s3:registry: use regsubkey_ctr_get_seqnum() in reg_backend_db.c
...
Michael
2009-02-26 13:22:53 +01:00
Michael Adam
8a74b535c8
s3:registry: use regsubkey_ctr_set_seqnum() in reg_backend_db.c
...
Michael
2009-02-26 13:22:53 +01:00
Michael Adam
3c15d053f5
s3:registry: use regsubkey_ctr_init() in reg_backend_db.c
...
instead of using talloc directly.
Michael
2009-02-26 13:22:53 +01:00
Michael Adam
ea2b74090d
s3:registry: use regsubkey_ctr_init() in reg_api.c
...
instead of using talloc on struct regsubkey_ctr.
Michael
2009-02-26 13:22:52 +01:00
Michael Adam
cd8bfd3a84
s3:registry: add regsubkey_ctr_get_seqnum() to hide implementation
...
Michael
2009-02-26 13:22:52 +01:00
Michael Adam
63ed47c9e4
s3:registry: add regsubkey_ctr_set_seqnum to hide implementation from caller.
...
Michael
2009-02-26 13:22:52 +01:00
Michael Adam
763f41f39c
s3:registry: add a regsubkey_ctr_init function for allocating a regsubkey_ctr
...
Michael
2009-02-26 13:22:51 +01:00
Michael Adam
060abd7e38
s3:registry: fix a comment
...
Michael
2009-02-26 13:22:51 +01:00
Michael Adam
63b576424d
s3:registry: don't directly access key->subkeys->subkeys[] in reg_backend_db.c
...
Use the reg_objects accessor regsubkey_ctr_specific_key() instead.
Michael
2009-02-26 13:22:51 +01:00
Michael Adam
8c1e4034fe
s3:registry: don't directly access key->subkeys->subkeys[] in reg_api.c
...
Use the reg_objects accessor regsubkey_ctr_specific_key() instead.
Michael
2009-02-26 13:22:51 +01:00
Michael Adam
62b53507d2
s3:registry: don't directly access key->subkeys->num_subkeys in reg_backend_db.
...
Use the reg_objects api instead.
Michael
2009-02-26 13:22:51 +01:00
Michael Adam
e05b7a8627
s3:registry: don't directly access key->subkeys->num_subkeys in reg_api.c
...
Use the reg_objects api instead.
Michael
2009-02-26 13:22:51 +01:00
Michael Adam
58fc61217d
s3:registry: replace typedef "REGSUBKEY_CTR" by "struct regsubkey_ctr"
...
This paves the way for hiding the typedef and the implementation from the
surface.
Michael
2009-02-26 13:22:51 +01:00
Michael Adam
b56f449d6b
Revert "Fix a O(n^2) algorithm in regdb_fetch_keys()"
...
This reverts commit a13f065bad
.
This fix is reverted, because the speedup is going to move
further down into reg_objects.c. The unsorted list of subkey names
is going to be indexed: This O(n^2) search bites us in more places.
This re-establishes the abstraction of reg_objects.c.
Michael
2009-02-26 13:22:51 +01:00
Volker Lendecke
6cdcfa3fc1
Remove a temporary debug message -- sorry
2009-02-26 13:26:12 +01:00
Günther Deschner
44ceff4d01
s3-spoolss: fix search_notify(). sorry...
...
Guenther
2009-02-26 13:19:24 +01:00
Günther Deschner
98ca5b04ba
s3: re-run make samba3-idl.
...
Guenther
2009-02-26 13:17:23 +01:00
Günther Deschner
54b529a44e
s3-spoolss: job status defines moved to IDL.
...
Guenther
2009-02-26 13:17:23 +01:00
Günther Deschner
76ae2022ad
spoolss: add spoolss_JobStatus.
...
Guenther
2009-02-26 13:17:23 +01:00
Günther Deschner
3e25d3bb15
s3-spoolss: remove some unused defines and structs.
...
Guenther
2009-02-26 13:17:22 +01:00
Stefan Metzmacher
d3ac11c64a
s4:heimdal_build: correrctly switch closefrom() and get/setprogname() replacements on and off
...
metze
2009-02-26 13:14:26 +01:00
Volker Lendecke
a777b4d501
Convert open_socket_out to tevent_req
2009-02-26 13:04:34 +01:00
Volker Lendecke
408cde8fca
Add tevent_req helpers to includes.h
2009-02-26 13:04:34 +01:00
Volker Lendecke
4d22554e98
Add tevent_ntstatus
2009-02-26 13:04:33 +01:00
Michael Adam
42b8d6b308
s3:net: wrap net conf import into one big transaction
...
This speeds up "net conf import" of a file with 2000 shares
from 11 minutest to 1m50s on my box.
Michael
2009-02-26 11:05:23 +01:00
Michael Adam
bd121b532c
s3:libsmbconf: add transactions to the libsmbconf api
...
This is useful for wrapping higher level aggregate operations
in transactions. The text backend implementations just return
WERR_OK, the registry backend implementatoins use the
regdb_transaction_start|commit|cancel routines just added.
Michael
2009-02-26 11:05:23 +01:00