messaging: Register a tevent context for secondary dgm refs
authorVolker Lendecke <vl@samba.org>
Mon, 18 May 2015 11:15:35 +0000 (13:15 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 28 May 2015 09:13:09 +0000 (11:13 +0200)
commitcc51e85f0aa49aad529eca5711fdc34f95bfe6d8
treeb16b652def7e704116a319a86f2ee5633027915a
parent586a95948029ce0491f05dfba67c986085adbb55
messaging: Register a tevent context for secondary dgm refs

When a secondary messaging context is initialized, we need to register
its tevent context with the lower level dgm context. Seen when using
smbstatus with clustering.

The TALLOC_FREE(r->tevent_handle) in the destructor might not be
necessary, but I want to free the tevent reference before
the context goes away.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/lib/messages_dgm_ref.c