The branch, master has been updated via 68390cb1e8c7f30be034b8ca6c9215b40147305b (commit) from fb00e1290fcea3386132a46c883994019a43799a (commit)
http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit 68390cb1e8c7f30be034b8ca6c9215b40147305b Author: Ronnie Sahlberg <ronniesahlb...@gmail.com> Date: Mon Mar 12 13:13:51 2012 +1100 ReadOnly: Only restrict the readonly sanity/paranoia check that only allows UPDATE_RECORD to create a record to only apply to normal databases, not persistent databases or else the net registry command breaks and other persistent database creation/updates . ----------------------------------------------------------------------- Summary of changes: server/ctdb_update_record.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/server/ctdb_update_record.c b/server/ctdb_update_record.c index f8be8e8..a4a6fc4 100644 --- a/server/ctdb_update_record.c +++ b/server/ctdb_update_record.c @@ -325,7 +325,10 @@ int32_t ctdb_control_update_record(struct ctdb_context *ctdb, state->ctdb_db = ctdb_db; state->c = c; state->m = m; - state->flags = UPDATE_FLAGS_REPLACE_ONLY; + state->flags = 0; + if (!ctdb_db->persistent) { + state->flags = UPDATE_FLAGS_REPLACE_ONLY; + } /* create a child process to take out a transaction and write the data. -- CTDB repository