diff options
author | Ralph Boehme <slow@samba.org> | 2018-12-27 12:48:30 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2019-01-11 23:11:16 +0100 |
commit | 2a62a98f5c7107f2f83c0bfc2892243d83e2c88a (patch) | |
tree | b60de04454e18952acc63b80f9a50a5a353d3862 /source3/lib/messages_ctdb_ref.c | |
parent | 1c3676f3aa9c1564eb140a24ced5ee72b859b87f (diff) | |
download | samba-2a62a98f5c7107f2f83c0bfc2892243d83e2c88a.tar.gz |
Revert "s3:messages: protect against usage of wrapper tevent_context objects for messaging"
This reverts commit 7f2afc20e1b6397c364a98d1be006377c95e4665.
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 'source3/lib/messages_ctdb_ref.c')
-rw-r--r-- | source3/lib/messages_ctdb_ref.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/source3/lib/messages_ctdb_ref.c b/source3/lib/messages_ctdb_ref.c index 47b4b758dac..3570ed8ae4c 100644 --- a/source3/lib/messages_ctdb_ref.c +++ b/source3/lib/messages_ctdb_ref.c @@ -52,18 +52,6 @@ void *messaging_ctdb_ref(TALLOC_CTX *mem_ctx, struct tevent_context *ev, { struct msg_ctdb_ref *result, *tmp_refs; - if (tevent_context_is_wrapper(ev)) { - /* - * This is really a programmer error! - * - * The main/raw tevent context should - * have been registered first! - */ - DBG_ERR("Should not be used with a wrapper tevent context\n"); - *err = EINVAL; - return NULL; - } - result = talloc(mem_ctx, struct msg_ctdb_ref); if (result == NULL) { *err = ENOMEM; |