]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbind: Update winbind to tevent 0.15.0 API
authorPavel Filipenský <pfilipensky@samba.org>
Tue, 2 May 2023 19:59:53 +0000 (21:59 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 19 Jul 2023 08:02:33 +0000 (08:02 +0000)
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/winbindd/winbindd.c
source3/winbindd/winbindd_dual.c

index b191e010e19cf7f7438ef135212a7aa40c6bb44c..7db0e87163a467b5ea89ca6a3a30068364255d8d 100644 (file)
@@ -441,7 +441,6 @@ static struct tevent_req *process_request_send(
        if (req == NULL) {
                return NULL;
        }
-       tevent_thread_call_depth_start(req);
        state->cli_state = cli_state;
        state->ev = ev;
 
@@ -1638,7 +1637,10 @@ int main(int argc, const char **argv)
 
        if (lp_winbind_debug_traceid()) {
                winbind_debug_traceid_setup(global_event_context());
-               tevent_thread_call_depth_activate(debug_call_depth_addr());
+               winbind_debug_call_depth_setup(debug_call_depth_addr());
+               tevent_thread_call_depth_set_callback(
+                       debuglevel_get() > 1 ? winbind_call_flow : NULL,
+                       NULL);
        }
        ok = initialize_password_db(true, global_event_context());
        if (!ok) {
index 9ad4dea28f80325cee9827a40a8aab2f5cf77b12..e828e616765f8796dae2b75437db6c067e5cefa8 100644 (file)
@@ -1746,7 +1746,7 @@ static bool fork_domain_child(struct winbindd_child *child)
        /* Reset traceid and deactivate call_depth tracking */
        if (lp_winbind_debug_traceid()) {
                debug_traceid_set(1);
-               tevent_thread_call_depth_deactivate();
+               tevent_thread_call_depth_set_callback(NULL, NULL);
        }
 
        status = winbindd_reinit_after_fork(child, child->logfilename);