dbwrap ctdb: add a retry loop to the persistent store operation.
authorMichael Adam <obnox@samba.org>
Tue, 5 Aug 2008 09:32:20 +0000 (11:32 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 13 Aug 2008 09:54:06 +0000 (11:54 +0200)
commit5dcf20961ee52eca4eb0bb4ab0e20ebd547c8058
tree5be26c5f95266da05aebee444aa817546d9412f8
parented6692964768fd14d1b6c3378e40e23c68e9dd63
dbwrap ctdb: add a retry loop to the persistent store operation.

This is because ctdbd can fail in performing the persistent_store
due to race conditions, and this does not mean it can't succeed
the next time.

To not loop infinitely, this makes use of a new parametric option:
"dbwrap ctdb:max store retries" (integer) which defaults to 5
and sets the upper limit for the number or repeats of the
fetch/store cycle.

Michael
(This used to be commit 2bcc9e6ecef876030e552a607d92597f60203db2)
source3/lib/dbwrap_ctdb.c