mirror of
https://github.com/samba-team/samba.git
synced 2025-09-07 21:44:22 +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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user