build: Remove re-definition of same variable
authorAmitay Isaacs <amitay@gmail.com>
Mon, 19 Mar 2012 22:22:54 +0000 (09:22 +1100)
committerAmitay 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

index a4a6fc41a1de1e147a008f731c0c5ac1234d4c4d..5845f1a7f2b9c26c74a6b5b667b4335f4f293507 100644 (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 */