summaryrefslogtreecommitdiffstats
path: root/source4/torture/local/dbspeed.c
Commit message (Collapse)AuthorAgeFilesLines
* s4:torture/local: only pass prefix strings to tdb_add_record() in dbspeed.cStefan Metzmacher2014-04-021-8/+8
| | | | | | | This way the compiler has a chance to check the format string. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4:torture/local: add missing #include "torture/local/proto.h"Stefan Metzmacher2014-04-021-0/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* tdb_wrap: Remove tdb_wrap_open_ againVolker Lendecke2014-03-311-3/+3
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* torture: Avoid passing lp_ctx to tdb_wrap_open in test_tdb_speedVolker Lendecke2014-03-311-2/+3
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* tdb_wrap: Move to specific directory.Jelmer Vernooij2012-03-101-1/+1
| | | | | | | | | | It's a bit confusing to mix low-level and high-level libraries. We had multiple libraries in one directory, and there were have circular dependencies with other libraries outside that directory (in this case, samba-hostconfig). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 10 23:13:01 CET 2012 on sn-devel-104
* lib/util: Add back control of mmap and hash size in tdb for top level buildAndrew Bartlett2011-10-131-1/+1
| | | | | | | | This passes down a struct loadparm_context to allow these parameters to be checked. This may be s3 or s4 context, allowing the #if _SAMBA_BUILD_ macro to go away safely. Andrew Bartlett
* tdb_fetch_compat: use instead of tdb_fetch.Rusty Russell2011-06-201-2/+2
| | | | | | | This is a noop for tdb1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_compat.h: divert every tdb build and includes to tdb_compatRusty Russell2011-06-201-1/+1
| | | | | | | | We change all the headers and wscript files to use tdb_compat; this means we have one place to decide whether to use TDB1 or TDB2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/util Move source3 tdb_wrap_open() into the common code.Andrew Bartlett2011-05-061-1/+1
| | | | | | | | | This #if _SAMBA_BUILD == 3 is very unfortunate, as it means that in the top level build, these options are not available for these databases. However, having two different tdb_wrap lists is a worse fate, so this will do for now. Andrew Bartlett
* Use <tdb.h> to include tdb, so the system include file gets used when ↵Jelmer Vernooij2011-02-281-1/+1
| | | | | | building against system tdb.
* ldb: use #include <ldb.h> for ldbAndrew Tridgell2011-02-101-2/+2
| | | | | | | | thi ensures we are using the header corresponding to the version of ldb we're linking against. Otherwise we could use the system ldb for link and the in-tree one for include Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-111-1/+1
| | | | | | | | This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
* s4:torture/local/dbspeed.c - use LDB result constantMatthias Dieter Wallnöfer2010-10-151-1/+2
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Oct 15 19:11:32 UTC 2010 on sn-devel-104
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-1/+1
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library.Stefan Metzmacher2010-06-161-1/+1
| | | | | | | | | This is needed to remove samba specifc symbols from the bundled ldb, in order to get the ABI right. metze Signed-off-by: Andreas Schneider <asn@samba.org>
* s4:dbspeed torture - improve also the TDB code partMatthias Dieter Wallnöfer2010-04-111-10/+9
| | | | | Always use the label "failed" on failures, always close the database context (child of "tmp_ctx") when deleting database file.
* s4:dbspeed torture - remove unneeded newlines on "torture_result"Matthias Dieter Wallnöfer2010-04-111-7/+7
| | | | According to Jelmer's post on the technical list.
* s4:torture - "dbspeed" test - add newlines as we have them in the other ↵Matthias Dieter Wallnöfer2010-04-111-2/+2
| | | | failure messages
* s4:torture - "dbspeed" testMatthias Dieter Wallnöfer2010-04-111-2/+2
| | | | Calculate the leaks on base of the "tmp_ctx" not the torture context.
* s4:torture - "dbspeed" testMatthias Dieter Wallnöfer2010-04-111-10/+17
| | | | Unify error handling.
* s4:torture - "dbspeed" testMatthias Dieter Wallnöfer2010-04-111-3/+4
| | | | Add more "talloc_free"s where needed or useful.
* s4-ldbwrap: added re-use of ldb contexts in ldb_wrap_connect()Andrew Tridgell2009-10-231-1/+1
| | | | | | | | | This allows us to reuse a ldb context if it is open twice, instead of going through the expensive process of a full ldb open. We can reuse it if all of the parameters are the same. The change relies on callers using talloc_unlink() or free of a parent to close a ldb context.
* Merge ldb_search() and ldb_search_exp_fmt() into a simgle function.Simo Sorce2008-09-231-5/+2
| | | | | The previous ldb_search() interface made it way too easy to leak results, and being able to use a printf-like expression turns to be really useful.
* Fix last few includes to use new tdb location.Jelmer Vernooij2008-09-161-1/+1
|
* Move subunit infrastructure code into lib/torture.Jelmer Vernooij2008-04-271-1/+1
| | | | (This used to be commit 5b44d8121de7735d69e6238a1442aff034a8ebd3)
* Specify event_context to ldb_wrap_connect explicitly.Jelmer Vernooij2008-04-171-1/+1
| | | | (This used to be commit b4e1ae07a284c044704322446c94351c2decff91)
* r26588: Janitorial: Rename torture_*_add_*test to torture_*_add_*test_const.Kai Blin2007-12-261-2/+4
| | | | | Also rename the corresponding wrap_ functions. (This used to be commit e59c2eaf681f076d175b9779d1c27b5f74a57c96)
* r26238: Add a loadparm context parameter to torture_context, remove more ↵Jelmer Vernooij2007-12-211-1/+1
| | | | | | uses of global_loadparm. (This used to be commit a33a5530545086b81a3b205aa109dff11c546926)
* r26003: Split up DB_WRAP, as first step in an attempt to sanitize dependencies.Jelmer Vernooij2007-12-211-1/+2
| | | | (This used to be commit 56dfcb4f2f8e74c9d8b2fe3a0df043781188a555)
* r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij2007-10-101-10/+10
| | | | (This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
* r25446: Merge some changes I made on the way home from SFO:Jelmer Vernooij2007-10-101-1/+2
| | | | | | | | 2007-09-29 More higher-level passing around of lp_ctx. 2007-09-29 Fix warning. 2007-09-29 Pass loadparm contexts on a higher level. 2007-09-29 Avoid using global loadparm context. (This used to be commit 3468952e771ab31f90b6c374ade01c5550810f42)
* r25035: Fix some more warnings, use service pointer rather than service ↵Jelmer Vernooij2007-10-101-1/+2
| | | | | | number in more places. (This used to be commit df9cebcb97e20564359097148665bd519f31bc6f)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-101-3/+2
| | | | | | There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
* r21421: Fix a memleak. This made tdb look considerably worse than necessary.Volker Lendecke2007-10-101-0/+2
| | | | | Volker (This used to be commit 573ba38722e338fb4158dfda181308a1a736c5c0)
* r21418: Return the ratio as wellSimo Sorce2007-10-101-2/+8
| | | | (This used to be commit 56ed4499d69adf57a41632ba12cbfef383a35ab2)
* r21211: fixed 3 places that assumed that torture_fail() didn't callAndrew Tridgell2007-10-101-3/+6
| | | | | | | return. Having a lowercase macro that returns from a function is probably a bad idea - it looks too much like a C function but doesn't behave like one. (This used to be commit e680656419f00fd8b4ddb996fd247bada0f0a51d)
* r20823: Remove newlines in calls to torture_fail().Jelmer Vernooij2007-10-101-5/+5
| | | | (This used to be commit 37c0cfe83bd9b9f799c880e3b5052a49631a113e)
* r19831: Big ldb_dn optimization and interfaces enhancement patchSimo Sorce2007-10-101-13/+7
| | | | | | | | | | | | | | | | | This patch changes a lot of the code in ldb_dn.c, and also removes and add a number of manipulation functions around. The aim is to avoid validating a dn if not necessary as the validation code is necessarily slow. This is mainly to speed up internal operations where input is not user generated and so we can assume the DNs need no validation. The code is designed to keep the data as a string if possible. The code is not yet 100% perfect, but pass all the tests so far. A memleak is certainly present, I'll work on that next. Simo. (This used to be commit a580c871d3784602a9cce32d33419e63c8236e63)
* r19536: Make output understandable (newlines)Simo Sorce2007-10-101-19/+19
| | | | (This used to be commit 6960dd2075ed75c844c4a17e215991db2fb72c0d)
* r19392: Use torture_setting_* rather than lp_parm_* where possible.Jelmer Vernooij2007-10-101-2/+2
| | | | (This used to be commit b28860978fe29c5b10abfb8c59d7182864e21dd6)
* r19377: Simplify report functions.Jelmer Vernooij2007-10-101-6/+6
| | | | (This used to be commit 0061f3c47e95f07461837c4051cf129b18961b56)
* r19350: Properly list LOCAL-TALLOC under the "LOCAL" header.Jelmer Vernooij2007-10-101-1/+1
| | | | | | Support directories for subcategories in tests. Several small other fixes. (This used to be commit bde00d97068d559b025ab131ff698a82430d14b3)
* r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grainedJelmer Vernooij2007-10-101-8/+10
| | | | | | | | | | | | | | | | | | | output in the testsuite rather than just True or False for a set of tests. The aim is to use this for: * known failure lists (run all tests and detect tests that started working or started failing). This would allow us to get rid of the RPC-SAMBA3-* tests * nicer torture output * simplification of the testsuite system * compatibility with other unit testing systems * easier usage of smbtorture (being able to run one test and automatically set up the environment for that) This is still a work-in-progress; expect more updates over the next couple of days. (This used to be commit 0eb6097305776325c75081356309115f445a7218)
* r19294: a little speed tester for ldb/tdbAndrew Tridgell2007-10-101-0/+250
I wrote this to see if using a ldb for idmap store (the equivalent of winbindd_idmap.tdb) makes sense. It's a long lived database that administrators may wish to edit, so ldb makes sense, but at the moment ldb is too slow. This test will help us speed it up. (This used to be commit 10f8260455a55530f5701a136af8fa8b05ca8532)