1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +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:
Amitay Isaacs 2012-03-20 09:22:54 +11:00
parent cf41acf500
commit 858d8dc571

View File

@ -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 trec;
trec = tdb_fetch(state->ctdb_db->ltdb->tdb, key);
if (trec.dsize == 0) {
talloc_free(tmp_ctx);
continue;
}
free(rec.dptr);
free(trec.dptr);
}
/* fetch the old header and ensure the rsn is less than the new rsn */