[SCM] CTDB repository - branch 1.13 updated - ctdb-1.13-2-g8d606e5

Ronnie Sahlberg sahlberg at samba.org
Sun Mar 11 20:39:40 MDT 2012


The branch, 1.13 has been updated
       via  8d606e5f71072ccc60bcac54dfd9e92bb699c6e5 (commit)
      from  0c0e887912ca37682312091f4b89ff5167b254d9 (commit)

http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=1.13


- Log -----------------------------------------------------------------
commit 8d606e5f71072ccc60bcac54dfd9e92bb699c6e5
Author: Ronnie Sahlberg <ronniesahlberg at 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


More information about the samba-cvs mailing list