s3: messages: Implement cleanup of dead records.
commite6ff1291fa940294689d46bd2795281d45fbc07e
authorJeremy Allison <jra@samba.org>
Wed, 2 Apr 2014 23:45:25 +0000 (2 16:45 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 7 Apr 2014 09:55:50 +0000 (7 11:55 +0200)
tree0308d8ec43edc19e3e7b41f6fe1f57a4bc99540d
parentb649fdb8d63a5b14bb9dc567de1ddd640ae165f3
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-0-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-0-test): Mon Apr  7 11:55:50 CEST 2014 on sn-devel-104
source3/include/messages.h
source3/lib/messages.c
source3/lib/messages_local.c
source3/smbd/server.c