This is needed to ensure searches that are scheduled more then once to the
Elasticsarch server (because the first run didn't return all results) get
removed from the list of searches in case the user closes the query.
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>
}
s->pending = false;
- talloc_set_destructor(s, NULL);
+ talloc_set_destructor(s, search_destructor);
}
static struct tevent_req *mds_es_search_send(TALLOC_CTX *mem_ctx,