s3: Avoid a call to server_event_context()
authorVolker Lendecke <vl@samba.org>
Mon, 25 Jun 2012 09:07:06 +0000 (11:07 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 25 Jun 2012 13:28:16 +0000 (15:28 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/modules/vfs_aio_pthread.c

index 36ce9ab9d1c4c62a3fe8fa495df762ad6141479c..3287fc165b9526260b34bb1d49d0dd939bbdeaa0 100644 (file)
@@ -69,7 +69,7 @@ static bool init_aio_threadpool(struct vfs_handle_struct *handle)
                errno = ret;
                return false;
        }
-       sock_event = tevent_add_fd(server_event_context(),
+       sock_event = tevent_add_fd(handle->conn->sconn->ev_ctx,
                                NULL,
                                pthreadpool_signal_fd(pool),
                                TEVENT_FD_READ,