In ctdb_ltdb_store(), add a missing transaction_cancel when local store failed.
authorMichael Adam <obnox@samba.org>
Tue, 20 Oct 2009 14:57:23 +0000 (16:57 +0200)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 21 Oct 2009 01:49:59 +0000 (12:49 +1100)
Spotted by Volker.

Michael

server/ctdb_persistent.c

index 77538d98f910fc70ed626183badf3d82c591bb28..cb77bf092d107c9763686f49176487c7a844cf74 100644 (file)
@@ -291,7 +291,7 @@ static int ctdb_persistent_store(struct ctdb_persistent_write_state *state)
                if (ret != 0) {
                        DEBUG(DEBUG_CRIT,("Failed to store record for db_id 0x%08x in ctdb_persistent_store\n", 
                                          state->ctdb_db->db_id));
-                       return -1;
+                       goto failed;
                }
        }