summaryrefslogtreecommitdiff
path: root/source3/lib/dbwrap
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-06-29 10:52:33 +0200
committerMichael Adam <obnox@samba.org>2012-06-29 15:21:20 +0200
commitb46977e4f64b040dd760ae74b0ca3cbed0df1395 (patch)
tree0d2ec949db3f319036efbf00ea361ac118ad40b3 /source3/lib/dbwrap
parent92808a6005debb8810f83a3527cdb0d01559169d (diff)
downloadsamba-b46977e4f64b040dd760ae74b0ca3cbed0df1395.tar.gz
samba-b46977e4f64b040dd760ae74b0ca3cbed0df1395.tar.bz2
samba-b46977e4f64b040dd760ae74b0ca3cbed0df1395.zip
s3:dbwrap_ctdb: fix a comment in db_ctdb_fetch()
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
Diffstat (limited to 'source3/lib/dbwrap')
-rw-r--r--source3/lib/dbwrap/dbwrap_ctdb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c
index 7ea8e9347c..d1f0e5d387 100644
--- a/source3/lib/dbwrap/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap/dbwrap_ctdb.c
@@ -1226,8 +1226,9 @@ static NTSTATUS db_ctdb_fetch(struct db_context *db, TALLOC_CTX *mem_ctx,
* we bypass the dmaster check for persistent databases
*/
if (db_ctdb_can_use_local_copy(ctdb_data, true)) {
- /* we are the dmaster - avoid the ctdb protocol op */
-
+ /*
+ * We have a valid local copy - avoid the ctdb protocol op
+ */
data->dsize = ctdb_data.dsize - sizeof(struct ctdb_ltdb_header);
data->dptr = (uint8_t *)talloc_memdup(