git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cc7c55
)
r2712: fixed a bug in ldbtest to make it cope with an existing index
author
Andrew Tridgell
<tridge@samba.org>
Tue, 28 Sep 2004 08:17:20 +0000
(08:17 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:59:25 +0000
(12:59 -0500)
(This used to be commit
3f776a9b5c240312f161b651201458e43a9dd6a9
)
source4/lib/ldb/tools/ldbtest.c
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/tools/ldbtest.c
b/source4/lib/ldb/tools/ldbtest.c
index 7c240a01d27f41de64178b0d1ee9be17bb0d5137..63ce738f8cfd654932a4893cd2727acb963d3999 100644
(file)
--- a/
source4/lib/ldb/tools/ldbtest.c
+++ b/
source4/lib/ldb/tools/ldbtest.c
@@
-294,6
+294,8
@@
static void start_test_index(struct ldb_context **ldb)
printf("Starting index test\n");
+ ldb_delete(*ldb, "@INDEXLIST");
+
memset(&msg, 0, sizeof(msg));
msg.dn = strdup("@INDEXLIST");
ldb_msg_add_string(*ldb, &msg, "@IDXATTR", strdup("uid"));
@@
-404,10
+406,10
@@
static void usage(void)
srandom(1);
- start_test_index(&ldb);
-
start_test(ldb, nrecords, nsearches);
+ start_test_index(&ldb);
+
ldb_close(ldb);
return 0;