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