summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-06-29 10:55:32 +0200
committerMichael Adam <obnox@samba.org>2012-06-29 15:21:21 +0200
commit01863df25dda5a643dd3ed58b8c8150c61416384 (patch)
tree2c6f0bd6f92edd9e7d4efa3f1f8705ad30a5acc3
parentb46977e4f64b040dd760ae74b0ca3cbed0df1395 (diff)
downloadsamba-01863df25dda5a643dd3ed58b8c8150c61416384.tar.gz
samba-01863df25dda5a643dd3ed58b8c8150c61416384.tar.bz2
samba-01863df25dda5a643dd3ed58b8c8150c61416384.zip
s3_dbrwap_ctdb: improve a comment in db_ctdb_can_use_local_record()
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
-rw-r--r--source3/lib/dbwrap/dbwrap_ctdb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c
index d1f0e5d387..5605b47caf 100644
--- a/source3/lib/dbwrap/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap/dbwrap_ctdb.c
@@ -1025,7 +1025,9 @@ static bool db_ctdb_can_use_local_copy(TDB_DATA ctdb_data, bool read_only)
return read_only && (hdr->flags & CTDB_REC_RO_HAVE_READONLY);
}
- /* If we want write access, noone can have r/o copies. */
+ /*
+ * If we want write access, no one may have r/o copies.
+ */
return read_only || !(hdr->flags & CTDB_REC_RO_HAVE_DELEGATIONS);
#else
return (hdr->dmaster == get_my_vnn());