summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-12-04 14:53:05 +0100
committerKarolin Seeger <kseeger@samba.org>2009-12-08 09:15:29 +0100
commite54663380c3851a9c8897137529a8ea85b4c3077 (patch)
tree1fe0c36bc1e7e8a21e8f041171c17c3ce0274177 /source3/lib
parent4167bbcf03a35e3b21a30643933b13c7de49b750 (diff)
downloadsamba-e54663380c3851a9c8897137529a8ea85b4c3077.tar.gz
s3:dbwrap_ctdb: increase the number of commit retries 5-->100
This is to cope with timeouts when recoveries and transactions collide. Maybe 100 is too hight, but 10 or even 20 have been too low in a very busy environment. Michael (cherry picked from commit 97eb53b432e8b16e55b0dccac7acbb2e40467dc6)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/dbwrap_ctdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/dbwrap_ctdb.c b/source3/lib/dbwrap_ctdb.c
index 9e57aadb258..8e188d0ab53 100644
--- a/source3/lib/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap_ctdb.c
@@ -850,7 +850,7 @@ again:
}
}
- if (++retries == 5) {
+ if (++retries == 100) {
DEBUG(0,(__location__ " Giving up transaction on db 0x%08x after %d retries failure_control=%u\n",
h->ctx->db_id, retries, (unsigned)failure_control));
ctdbd_control_local(messaging_ctdbd_connection(), failure_control,