git.samba.org
/
sahlberg
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4289143
)
client: increase the number of commit retries 10-->100
author
Michael Adam
<obnox@samba.org>
Wed, 2 Dec 2009 23:28:32 +0000
(
00:28
+0100)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/client/ctdb_client.c
b/client/ctdb_client.c
index c73200d0c74e90267642eaa8a0c7d6022097852a..48b9b5a311f1548424e4c4a2ebe65b8ef546ba2c 100644
(file)
--- a/
client/ctdb_client.c
+++ b/
client/ctdb_client.c
@@
-3539,7
+3539,7
@@
again:
}
}
- if (++retries == 10) {
+ if (++retries == 10
0
) {
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,