handle two special cases
authorAndrew Tridgell <tridge@samba.org>
Thu, 7 Aug 2008 23:58:15 +0000 (09:58 +1000)
committerMichael Adam <obnox@samba.org>
Wed, 13 Aug 2008 09:54:10 +0000 (11:54 +0200)
commit2592565bde6faa8ecc0524c4130c22e51c75f536
treec6dbb43dc2312725081e24afc333b2af479635b4
parentbd47edc8d68daa8db54dc897b69f0bca0bedf80a
handle two special cases

1) when all nodes write the same value to the record, or when writing
   a value that is already there, we can skip the write and save
   ourselves a network transactions

2) when all remote nodes fail an update, and we then fail a replay, we
   don't need to trigger a recovery. This solves a corner case where
   we could get into a recovery loop
(This used to be commit 2481bfce4307274806584b0d8e295cc7f638e184)
source3/lib/dbwrap_ctdb.c