client: increase the number of commit retries 10-->100
authorMichael Adam <obnox@samba.org>
Wed, 2 Dec 2009 23:28:32 +0000 (00:28 +0100)
committerMichael Adam <obnox@samba.org>
Fri, 4 Dec 2009 14:03:16 +0000 (15:03 +0100)
To cope with timeouts when recoveries and transactions collide.
Maybe 100 is too high.

Michael

client/ctdb_client.c

index c73200d0c74e90267642eaa8a0c7d6022097852a..48b9b5a311f1548424e4c4a2ebe65b8ef546ba2c 100644 (file)
@@ -3539,7 +3539,7 @@ again:
                        }
                }
 
-               if (++retries == 10) {
+               if (++retries == 100) {
                        DEBUG(DEBUG_ERR,(__location__ " Giving up transaction on db 0x%08x after %d retries failure_control=%u\n", 
                                         h->ctdb_db->db_id, retries, (unsigned)failure_control));
                        ctdb_control(ctdb, CTDB_CURRENT_NODE, h->ctdb_db->db_id,