In ctdb_writerecord()
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 5 Jun 2010 05:43:01 +0000 (15:43 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 5 Jun 2010 05:43:01 +0000 (15:43 +1000)
commitf62c7e44dc303f274bbc1dd59fad2167e72a2af0
treeb9b1213d4a104c148e7bd3b345b5db0c9cb95cdd
parent463a266205f145cd9c4c36b9c59d3747eeef0e2e
In ctdb_writerecord()
Verify that the lock is still held and refuse the write otherwise.

We have to guarantee that we dont write to an unlocked record.

If we write to a record after it has been released, the record may have
already migrated off the node, in which case we get a DMASTER split brain for this record. (These application bugs are incredibly hard to track down)
libctdb/ctdb.c