s3: messages: Implement cleanup of dead records.
commitdadd86364f300d952e3c6ad825c8da04a3f45e5d
authorJeremy Allison <jra@samba.org>
Wed, 2 Apr 2014 23:45:25 +0000 (2 16:45 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 4 Apr 2014 21:07:07 +0000 (4 23:07 +0200)
tree7b30f3f07bbe9803e78a1e0f9fb6c0dab0a939c7
parentbdd6da6d93689cd94d9b7f92e43f01f6cdbd58d9
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>
(cherry picked from commit 837671f47670b16726aa96ba7a0902974a1037eb)

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10534
Cleanup messages.tdb record after unclean smbd shutdown

Autobuild-User(v4-1-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-1-test): Fri Apr  4 23:07:07 CEST 2014 on sn-devel-104
source3/include/messages.h
source3/lib/messages.c
source3/lib/messages_local.c
source3/smbd/server.c