git.samba.org
/
garming
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92808a6
)
s3:dbwrap_ctdb: fix a comment in db_ctdb_fetch()
author
Michael Adam
<obnox@samba.org>
Fri, 29 Jun 2012 08:52:33 +0000
(10:52 +0200)
committer
Michael Adam
<obnox@samba.org>
Fri, 29 Jun 2012 13:21:20 +0000
(15:21 +0200)
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
source3/lib/dbwrap/dbwrap_ctdb.c
patch
|
blob
|
history
diff --git
a/source3/lib/dbwrap/dbwrap_ctdb.c
b/source3/lib/dbwrap/dbwrap_ctdb.c
index 7ea8e9347c4465686ca2551e793a661344eca25f..d1f0e5d387ff847b23028956712d06ca018660ee 100644
(file)
--- 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(