libctdb: always check header hasn't changed on local tdb
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 8 Jun 2010 08:40:36 +0000 (18:10 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 8 Jun 2010 08:40:36 +0000 (18:10 +0930)
commit2638dbae7bf1a35ed37802e35e179e435a5d622a
treeb24373a3e56155be136642af5591fd967bb84130
parent3f939956ddd693cba6ea5c655288f4f5ca95f768
libctdb: always check header hasn't changed on local tdb

The code on which this is based could alter the header: a normal client
can't.  If we use this differently later we can change this.  For the
moment it's a nice extra check.

We optimize out the record write altogether when the record hasn't
changed, rather than just suppressing the seqnum update.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
libctdb/ctdb.c
libctdb/local_tdb.c