git.samba.org
/
obnox
/
samba-ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9a8a67
)
s3:dbwrap_ctdb: set dmaster in ctdb_transaction_store() also when updating an existin...
author
Michael Adam
<obnox@samba.org>
Fri, 11 Sep 2009 11:23:34 +0000
(13:23 +0200)
committer
Michael Adam
<obnox@samba.org>
Tue, 15 Sep 2009 13:28:03 +0000
(15:28 +0200)
not only when creating a record.
This matches commit
e9194a130327d6b05a8ab90bd976475b0e93b06d
from ctdb-master.
Michael
Signed-off-by: Michael Adam <obnox@samba.org>
source/lib/dbwrap_ctdb.c
patch
|
blob
|
history
diff --git
a/source/lib/dbwrap_ctdb.c
b/source/lib/dbwrap_ctdb.c
index 60dc85759f8b09b6ba485537021979b8ff392764..259532be069d13da5ecd58ec8e80c55c8939e370 100644
(file)
--- a/
source/lib/dbwrap_ctdb.c
+++ b/
source/lib/dbwrap_ctdb.c
@@
-469,7
+469,6
@@
static int db_ctdb_transaction_store(struct db_ctdb_transaction_handle *h,
This is only safe because we are in a transaction and this
is a persistent database */
ZERO_STRUCT(header);
- header.dmaster = get_my_vnn();
} else {
memcpy(&header, rec.dptr, sizeof(struct ctdb_ltdb_header));
rec.dsize -= sizeof(struct ctdb_ltdb_header);
@@
-483,6
+482,7
@@
static int db_ctdb_transaction_store(struct db_ctdb_transaction_handle *h,
SAFE_FREE(rec.dptr);
}
+ header.dmaster = get_my_vnn();
header.rsn++;
if (!h->in_replay) {