summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-06-29 10:51:37 +0200
committerMichael Adam <obnox@samba.org>2012-06-29 15:21:19 +0200
commit92808a6005debb8810f83a3527cdb0d01559169d (patch)
treeab3db7579cab4ac1b67ebdbd348704db3c9fa16c
parent0a5f36333303812f772a5b7ac84808bd634a4e4a (diff)
downloadsamba-92808a6005debb8810f83a3527cdb0d01559169d.tar.gz
samba-92808a6005debb8810f83a3527cdb0d01559169d.tar.bz2
samba-92808a6005debb8810f83a3527cdb0d01559169d.zip
s3:dbwrap_ctdb: expand the comment for the db_ctdb_can_use_local_copy() function
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
-rw-r--r--source3/lib/dbwrap/dbwrap_ctdb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c
index e5662e0357..7ea8e9347c 100644
--- a/source3/lib/dbwrap/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap/dbwrap_ctdb.c
@@ -1003,7 +1003,10 @@ static int db_ctdb_record_destr(struct db_record* data)
return 0;
}
-/* Do I own this record? */
+/**
+ * Check whether we have a valid local copy of the given record,
+ * either for reading or for writing.
+ */
static bool db_ctdb_can_use_local_copy(TDB_DATA ctdb_data, bool read_only)
{
struct ctdb_ltdb_header *hdr;