git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf41acf
)
build: Remove re-definition of same variable
author
Amitay Isaacs
<amitay@gmail.com>
Mon, 19 Mar 2012 22:22:54 +0000
(09:22 +1100)
committer
Amitay Isaacs
<amitay@gmail.com>
Fri, 30 Mar 2012 01:33:27 +0000
(12:33 +1100)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
(This used to be ctdb commit
36e690faab3d76919780c8550fe6d49fb6bbfba5
)
ctdb/server/ctdb_update_record.c
patch
|
blob
|
history
diff --git
a/ctdb/server/ctdb_update_record.c
b/ctdb/server/ctdb_update_record.c
index a4a6fc41a1de1e147a008f731c0c5ac1234d4c4d..5845f1a7f2b9c26c74a6b5b667b4335f4f293507 100644
(file)
--- a/
ctdb/server/ctdb_update_record.c
+++ b/
ctdb/server/ctdb_update_record.c
@@
-69,13
+69,13
@@
static int ctdb_persistent_store(struct ctdb_persistent_write_state *state)
ctdb_ltdb_fetch will unconditionally create a record
*/
if (state->flags & UPDATE_FLAGS_REPLACE_ONLY) {
- TDB_DATA rec;
- rec = tdb_fetch(state->ctdb_db->ltdb->tdb, key);
- if (rec.dsize == 0) {
+ TDB_DATA
t
rec;
+
t
rec = tdb_fetch(state->ctdb_db->ltdb->tdb, key);
+ if (
t
rec.dsize == 0) {
talloc_free(tmp_ctx);
continue;
}
- free(rec.dptr);
+ free(
t
rec.dptr);
}
/* fetch the old header and ensure the rsn is less than the new rsn */