diff options
author | Ralph Boehme <slow@samba.org> | 2018-12-23 09:23:48 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2019-01-11 23:11:12 +0100 |
commit | 96332ed100013cb89e92ae3f01a2f46136af3bd2 (patch) | |
tree | 8cfe24183bbf25a7a3fdee81cdb22d8ae2fd9f93 /lib/pthreadpool | |
parent | a75f5de15dba1c9f41a2d86c4fa6573764d4cb8d (diff) | |
download | samba-96332ed100013cb89e92ae3f01a2f46136af3bd2.tar.gz |
Revert "pthreadpool: we need to use pthreadpool_tevent_per_thread_cwd() on the callers pool"
This reverts commit ff863f2d98ac5e12073af824b794404c3d7198c5.
See the discussion in
https://lists.samba.org/archive/samba-technical/2018-December/131731.html
for the reasoning behind this revert.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/pthreadpool')
-rw-r--r-- | lib/pthreadpool/pthreadpool_tevent.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/pthreadpool/pthreadpool_tevent.c b/lib/pthreadpool/pthreadpool_tevent.c index b4a9786f231..f88f82d17d8 100644 --- a/lib/pthreadpool/pthreadpool_tevent.c +++ b/lib/pthreadpool/pthreadpool_tevent.c @@ -992,7 +992,6 @@ struct tevent_req *pthreadpool_tevent_job_send( struct pthreadpool_tevent_job_state *state = NULL; struct pthreadpool_tevent_job *job = NULL; int ret; - struct pthreadpool_tevent *caller_pool = pool; struct pthreadpool_tevent_wrapper *wrapper = pool->wrapper.ctx; pthreadpool_tevent_cleanup_orphaned_jobs(); @@ -1038,7 +1037,7 @@ struct tevent_req *pthreadpool_tevent_job_send( return tevent_req_post(req, ev); } PTHREAD_TEVENT_JOB_THREAD_FENCE_INIT(job); - job->per_thread_cwd = pthreadpool_tevent_per_thread_cwd(caller_pool); + job->per_thread_cwd = pthreadpool_tevent_per_thread_cwd(pool); talloc_set_destructor(job, pthreadpool_tevent_job_destructor); DLIST_ADD_END(job->pool->jobs, job); job->state = state; |