From 6ee1555df2e69aead00ee231c990020cc4bf04bc Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 12 Apr 2013 11:13:57 +0200 Subject: s3:locking:brlock: explain the lockdb_clean semantic better in brl_reconnect_disconnected() Signed-off-by: Michael Adam Signed-off-by: Gregor Beck Reviewed-by: Stefan Metzmacher --- source3/locking/brlock.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c index e95458989a..9680b8ff87 100644 --- a/source3/locking/brlock.c +++ b/source3/locking/brlock.c @@ -1595,7 +1595,11 @@ bool brl_reconnect_disconnected(struct files_struct *fsp) return false; } - /* we want to validate ourself */ + /* + * When reconnecting, we do not want to validate the brlock entries + * and thereby remove our own (disconnected) entries but reactivate + * them instead. + */ fsp->lockdb_clean = true; br_lck = brl_get_locks(talloc_tos(), fsp); -- cgit