summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-08-28 19:26:53 +1000
committerAndrew Bartlett <abartlet@samba.org>2009-08-28 22:41:54 +1000
commit77e2403f1314a28722f0fb21f6682320b2e9935d (patch)
tree4d1fd2affa24400a1fb41584efb47980bec980f8 /source4/lib/ldb
parent72fb26e9a4047174c32ffb18ddfd6c6dc046e82b (diff)
downloadsamba-77e2403f1314a28722f0fb21f6682320b2e9935d.tar.gz
samba-77e2403f1314a28722f0fb21f6682320b2e9935d.tar.bz2
samba-77e2403f1314a28722f0fb21f6682320b2e9935d.zip
s4:ldb Don't sleep(100) in this error case, but debug the LDIF
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_index.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_index.c b/source4/lib/ldb/ldb_tdb/ldb_index.c
index 1daa4500f8..7db22de097 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_index.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_index.c
@@ -1407,14 +1407,14 @@ int ltdb_index_del_value(struct ldb_module *module, const char *dn,
i = ldb_msg_find_idx(msg, dn, &j, LTDB_IDX);
if (i == -1) {
struct ldb_ldif ldif;
-
- ldb_debug(ldb, LDB_DEBUG_ERROR,
- "ERROR: dn %s not found in %s", dn,
- ldb_dn_get_linearized(dn_key));
+ char *ldif_string;
ldif.changetype = LDB_CHANGETYPE_NONE;
ldif.msg = msg;
- ldb_ldif_write_file(ldb, stdout, &ldif);
- sleep(100);
+ ldif_string = ldb_ldif_write_string(ldb, NULL, &ldif);
+ ldb_debug(ldb, LDB_DEBUG_ERROR,
+ "ERROR: dn %s not found in %s", dn,
+ ldif_string);
+ talloc_free(ldif_string);
/* it ain't there. hmmm */
talloc_free(dn_key);
return LDB_SUCCESS;