mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
build: Remove re-definition of same variable
Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 36e690faab3d76919780c8550fe6d49fb6bbfba5)
This commit is contained in:
parent
cf41acf500
commit
858d8dc571
@ -69,13 +69,13 @@ static int ctdb_persistent_store(struct ctdb_persistent_write_state *state)
|
|||||||
ctdb_ltdb_fetch will unconditionally create a record
|
ctdb_ltdb_fetch will unconditionally create a record
|
||||||
*/
|
*/
|
||||||
if (state->flags & UPDATE_FLAGS_REPLACE_ONLY) {
|
if (state->flags & UPDATE_FLAGS_REPLACE_ONLY) {
|
||||||
TDB_DATA rec;
|
TDB_DATA trec;
|
||||||
rec = tdb_fetch(state->ctdb_db->ltdb->tdb, key);
|
trec = tdb_fetch(state->ctdb_db->ltdb->tdb, key);
|
||||||
if (rec.dsize == 0) {
|
if (trec.dsize == 0) {
|
||||||
talloc_free(tmp_ctx);
|
talloc_free(tmp_ctx);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
free(rec.dptr);
|
free(trec.dptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* fetch the old header and ensure the rsn is less than the new rsn */
|
/* fetch the old header and ensure the rsn is less than the new rsn */
|
||||||
|
Loading…
Reference in New Issue
Block a user