ReadOnly: Dont update the record header from the calling client. While it is convenie...
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 24 Oct 2011 02:14:26 +0000 (13:14 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 24 Oct 2011 02:14:26 +0000 (13:14 +1100)
commitbf1d429227dc4f5818263cc39401d0a22663cdba
tree00a98b76b31050a03b82a6cf6a923ee2bd6b7bc5
parentdb0fdc2281c4742113c92d697371c37815db35a0
ReadOnly: Dont update the record header from the calling client. While it is convenient since it avoids having to create a child process from the main dameon for writing the updated record it makes the cleitn more complex.

Remove the code in the example client code that writes the record to the local tdb.
Add code to the local ctdbd processing of replies to check if this reply contain a ro delegation and if so, spawn a child process to lock the tdb and then write the data.
client/ctdb_client.c
server/ctdb_call.c