summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-04-12 11:13:57 +0200
committerMichael Adam <obnox@samba.org>2013-04-18 13:15:12 +0200
commit6ee1555df2e69aead00ee231c990020cc4bf04bc (patch)
tree69bb8dd3e1838277c90244f9558f747d96505c1b /source3/locking
parentf08bda22dc7a5038fab77ad7dd090a6f72d94c7f (diff)
downloadsamba-6ee1555df2e69aead00ee231c990020cc4bf04bc.tar.gz
samba-6ee1555df2e69aead00ee231c990020cc4bf04bc.tar.bz2
samba-6ee1555df2e69aead00ee231c990020cc4bf04bc.zip
s3:locking:brlock: explain the lockdb_clean semantic better in brl_reconnect_disconnected()
Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/brlock.c6
1 files changed, 5 insertions, 1 deletions
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);