Calling tevent_req_error() triggers a HTTP reconnect in mds_es_search_done() as
mds_es_search_recv() returns the error so we call mds_es_reconnect_on_error().
slq (which is s->slq) or s->mds_es_ctx will be NULL if the user closed a search
or disconnected a share with an active mdssvc IPC pipe, no need to trigger a
HTTP reconnect for those cases.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14915
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
}
if (state->s->mds_es_ctx == NULL) {
- tevent_req_error(req, ECANCELED);
+ tevent_req_done(req);
return;
}
return;
}
if (s->mds_es_ctx == NULL) {
- tevent_req_error(req, ECANCELED);
+ tevent_req_done(req);
return;
}