summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-03-10 13:38:48 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-03-23 08:33:59 +0100
commit331de115acab77ca4da12a56867b89de7afe263e (patch)
treecdbf5be36a75b6a82ea7052863360b708b5c0c3b /src
parent7a62712d6961d4afcb6b4a4fd7e92c6738f73b6e (diff)
downloadsssd-331de115acab77ca4da12a56867b89de7afe263e.tar.gz
sssd-331de115acab77ca4da12a56867b89de7afe263e.tar.xz
sssd-331de115acab77ca4da12a56867b89de7afe263e.zip
SDAP: Decorate the sdap_op functions with DEBUG messages
Reviewed-by: Pavel Reichl <preichl@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/providers/ldap/sdap_async.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async.c b/src/providers/ldap/sdap_async.c
index c979fbeac..0d1f0195c 100644
--- a/src/providers/ldap/sdap_async.c
+++ b/src/providers/ldap/sdap_async.c
@@ -409,12 +409,16 @@ static int sdap_op_destructor(void *mem)
DLIST_REMOVE(op->sh->ops, op);
- if (op->done) return 0;
+ if (op->done) {
+ DEBUG(SSSDBG_TRACE_INTERNAL, "Operation %d finished\n", op->msgid);
+ return 0;
+ }
/* we don't check the result here, if a message was really abandoned,
* hopefully the server will get an abandon.
* If the operation was already fully completed, this is going to be
* just a noop */
+ DEBUG(SSSDBG_TRACE_LIBS, "Abandoning operation %d\n", op->msgid);
ldap_abandon_ext(op->sh->ldap, op->msgid, NULL, NULL);
return 0;
@@ -431,6 +435,7 @@ static void sdap_op_timeout(struct tevent_req *req)
}
/* signal the caller that we have a timeout */
+ DEBUG(SSSDBG_TRACE_LIBS, "Issuing timeout for %d\n", op->msgid);
op->callback(op, NULL, ETIMEDOUT, op->data);
}
@@ -450,6 +455,9 @@ int sdap_op_add(TALLOC_CTX *memctx, struct tevent_context *ev,
op->data = data;
op->ev = ev;
+ DEBUG(SSSDBG_TRACE_INTERNAL,
+ "New operation %d timeout %d\n", op->msgid, timeout);
+
/* check if we need to set a timeout */
if (timeout) {
struct tevent_req *req;