The branch, 1.2.40 has been updated via d967d1bcf72d32312ca765bb467d03ddd4690cb7 (commit) via ba1b678db4dde637d7aba1037f446038d2093ec2 (commit) via 10249a8f350471d5c6e0bb16a7c1276ec3bcc22b (commit) from 9fd1d9cca3fcced1aa4af5d515f7e2617eae4a50 (commit)
http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=1.2.40 - Log ----------------------------------------------------------------- commit d967d1bcf72d32312ca765bb467d03ddd4690cb7 Author: Ronnie Sahlberg <ronniesahlb...@gmail.com> Date: Mon Mar 12 13:05:07 2012 +1100 new version 1.2.42 commit ba1b678db4dde637d7aba1037f446038d2093ec2 Author: Ronnie Sahlberg <ronniesahlb...@gmail.com> Date: Mon Mar 12 13:03:19 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 . S1035666 commit 10249a8f350471d5c6e0bb16a7c1276ec3bcc22b Author: Ronnie Sahlberg <ronniesahlb...@gmail.com> Date: Tue Mar 6 16:03:18 2012 +1100 new version 1.2.41 ----------------------------------------------------------------------- Summary of changes: packaging/RPM/ctdb.spec.in | 10 +++++++++- server/ctdb_persistent.c | 5 ++++- 2 files changed, 13 insertions(+), 2 deletions(-) Changeset truncated at 500 lines: diff --git a/packaging/RPM/ctdb.spec.in b/packaging/RPM/ctdb.spec.in index 3027baf..7519be1 100644 --- a/packaging/RPM/ctdb.spec.in +++ b/packaging/RPM/ctdb.spec.in @@ -3,7 +3,7 @@ Name: ctdb Summary: Clustered TDB Vendor: Samba Team Packager: Samba Team <sa...@samba.org> -Version: 1.2.40 +Version: 1.2.42 Release: 1GITHASH Epoch: 0 License: GNU GPL version 3 @@ -144,6 +144,14 @@ development libraries for ctdb %{_libdir}/libctdb.a %changelog +* Mon Mar 12 2012 : Version 1.2.42 + - Allow non-readonly database UPDATE_RECORD to create non-existing records + or else net command and the registry breaks. + S1035666 +* Tue Mar 6 2012 : Version 1.2.41 + - rewrite of 13.per_ip_routing script + - readonly record bugfixes + - add statistics for readonly delegations and revokes * Mon Feb 6 2012 : Version 1.2.40 - Fix for LCP2 failure to balance uneven netgroups - Add ReadOnly record support diff --git a/server/ctdb_persistent.c b/server/ctdb_persistent.c index 669021a..01c0e86 100644 --- a/server/ctdb_persistent.c +++ b/server/ctdb_persistent.c @@ -732,7 +732,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