diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-09-22 04:16:46 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:38:41 -0500 |
commit | d78ea3e34abd30fb388c4cc39e12611e211416a6 (patch) | |
tree | 4c111134a0850a7cd11283df50afd9484df8c8f3 /source4/lib/ldb/tools/ldbtest.c | |
parent | ede8415d61b6791114c65de1c283a4e8c11f1585 (diff) | |
download | samba-d78ea3e34abd30fb388c4cc39e12611e211416a6.tar.gz samba-d78ea3e34abd30fb388c4cc39e12611e211416a6.tar.bz2 samba-d78ea3e34abd30fb388c4cc39e12611e211416a6.zip |
r10406: added --nosync option to all ldb tools, so that you can control if
transactions are synchronous or not on the command line.
add LDB_FLG_NOSYNC flag to ldb_connect() so we can make our temporary
ldb databases non-synchronous
(This used to be commit dba41164e0c52f1e4351bd9057b16661cee3a822)
Diffstat (limited to 'source4/lib/ldb/tools/ldbtest.c')
-rw-r--r-- | source4/lib/ldb/tools/ldbtest.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/lib/ldb/tools/ldbtest.c b/source4/lib/ldb/tools/ldbtest.c index eeedd49e84..08ce99d20f 100644 --- a/source4/lib/ldb/tools/ldbtest.c +++ b/source4/lib/ldb/tools/ldbtest.c @@ -299,6 +299,11 @@ static void start_test_index(struct ldb_context **ldb) struct ldb_dn *indexlist; struct ldb_dn *basedn; int ret; + int flags = 0; + + if (options->nosync) { + flags |= LDB_FLG_NOSYNC; + } printf("Starting index test\n"); @@ -337,7 +342,7 @@ static void start_test_index(struct ldb_context **ldb) (*ldb) = ldb_init(options); - ret = ldb_connect(*ldb, options->url, 0, NULL); + ret = ldb_connect(*ldb, options->url, flags, NULL); if (ret != 0) { printf("failed to connect to %s\n", options->url); exit(1); |