diff options
author | Jeremy Allison <jra@samba.org> | 2014-04-02 16:45:25 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-04-03 06:22:13 +0200 |
commit | 837671f47670b16726aa96ba7a0902974a1037eb (patch) | |
tree | ed199a59526ad0b1b55e0e937a502fd73fe3c10a /source3/include | |
parent | 5cf6e9c8520be49aa57436bf725521cdc5d160f8 (diff) | |
download | samba-837671f47670b16726aa96ba7a0902974a1037eb.tar.gz |
s3: messages: Implement cleanup of dead records.
When a smbd process dies, pending messages.tdb records for this process
might not get cleaned up. Implement a cleanup for dead records that is
triggered after a smbd dies uncleanly; the records for that PID are
deleted.
Based on a patchset from Christof Schmitt <cs@samba.org>.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/messages.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/include/messages.h b/source3/include/messages.h index d7a28538cdd..47c5f7a2d9d 100644 --- a/source3/include/messages.h +++ b/source3/include/messages.h @@ -97,6 +97,9 @@ NTSTATUS messaging_tdb_init(struct messaging_context *msg_ctx, bool messaging_tdb_parent_init(TALLOC_CTX *mem_ctx); +NTSTATUS messaging_tdb_cleanup(struct messaging_context *msg_ctx, + struct server_id pid); + NTSTATUS messaging_ctdbd_init(struct messaging_context *msg_ctx, TALLOC_CTX *mem_ctx, struct messaging_backend **presult); @@ -143,6 +146,9 @@ struct tevent_req *messaging_read_send(TALLOC_CTX *mem_ctx, int messaging_read_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, struct messaging_rec **presult); +void messaging_cleanup_server(struct messaging_context *msg_ctx, + struct server_id pid); + #include "librpc/gen_ndr/ndr_messaging.h" #endif |