1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

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 .

(This used to be ctdb commit 68390cb1e8c7f30be034b8ca6c9215b40147305b)
This commit is contained in:
Ronnie Sahlberg 2012-03-12 13:13:51 +11:00
parent 62daab3688
commit b9e581e720

View File

@ -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.