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)
commit2481bfce4307274806584b0d8e295cc7f638e184
treee941f32697d5e66b17fe44949048cb2a3c685a9f
parent9b1fa59d83890534264bec8f1190831eea37d9c3
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
source/lib/dbwrap_ctdb.c