The original read-only record design had the client updating the local
copy of the header in the local tdb; ctdbd now does that itself, so
there's no reason that the client needs to fetch the record with header
to get a read-only copy.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* the delegations flag
*/
if ((c->flags & CTDB_WANT_READONLY)
- && (c->callid == CTDB_FETCH_WITH_HEADER_FUNC)
&& (!(header.flags & CTDB_REC_RO_HAVE_DELEGATIONS))) {
header.rsn += 3;
header.flags |= CTDB_REC_RO_HAVE_DELEGATIONS;
ctdb_fatal(ctdb, "Failed to store record with HAVE_DELEGATIONS set");
}
}
- if ((c->flags & CTDB_WANT_READONLY)
- && (call->call_id == CTDB_FETCH_WITH_HEADER_FUNC)) {
+ if (c->flags & CTDB_WANT_READONLY) {
TDB_DATA tdata;
tdata = tdb_fetch(ctdb_db->rottdb, call->key);