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 a13f065bad0f4d21a67e68b743f17f45bf0a4691.
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
Michael Adam
9f97674ef7
s3:registry: wrap deletekey_recursive in one big transaction.
...
This speeds up "net conf drop" with 2000 shares on my box from
4m40s to 1m50s, leaving virtually only cpu load.
Michael
2009-02-26 11:05:23 +01:00
Michael Adam
ba0e944c46
s3:registry: provide transaction_start|commit|cancel fns for the registry tdb
...
Michael
2009-02-26 11:05:22 +01:00
Volker Lendecke
170830c008
Wrap creating the sorted subkey cache in a transaction
...
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26 11:05:22 +01:00
Volker Lendecke
5c91cdcc47
Add a comment describing the sorted subkeys
...
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26 11:05:22 +01:00
Volker Lendecke
1b1aac412c
Add sorted subkey cache
...
On my box this gets net conf list for 1000 records down to .1 seconds
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26 11:05:22 +01:00
Volker Lendecke
aeb26fe911
Add db_tdb_parse
...
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26 11:05:22 +01:00
Volker Lendecke
9475e88bea
Add dbwrap->parse_record
...
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26 11:05:22 +01:00
Volker Lendecke
16f61a6f90
Speed up "net conf list"
...
For 1000 shares this speeds up net conf list from .6 to .25 seconds on my box
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26 11:05:21 +01:00
Volker Lendecke
26f238466c
Speed up "net conf list"
...
With 1000 shares in the registry, this changed the time of "net conf list" from
1.1 seconds to .6 seconds.
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26 11:05:21 +01:00
Stefan Metzmacher
8e4816f007
s4:Makefile: try to fix 'make installheaders' on *BSD systems
...
metze
2009-02-26 10:55:00 +01:00
Stefan Metzmacher
b6597424db
s4:heimdal_build: don't always build setprogname.o
...
This hopefully fixes the build on Mac OS 10, where setprogname()
is available via libc.
asn1_compile and compile_et use only .ho files again
and don't use socket_wrapper anymore.
metze
2009-02-26 10:48:11 +01:00
Stefan Metzmacher
c21ae8d1bf
libreplace: make it possible to disable socket_wrapper via -DSOCKET_WRAPPER_DISABLE=1
...
metze
2009-02-26 10:48:10 +01:00
Stefan Metzmacher
64662cb0c3
s4:ldb_map: include ldb_includes.h first to get replace.h as first header
...
This should bring the build on AIX one step further.
metze
2009-02-26 09:42:29 +01:00
Stefan Metzmacher
b679f6b256
s4:VERSION: mark as 4.0.0-alpha8 gitsnapshot
...
metze
2009-02-26 09:10:23 +01:00