ReadOnly: If record does not exist, upgrade to write-lock
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 28 Oct 2011 01:41:27 +0000 (12:41 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 28 Oct 2011 01:41:27 +0000 (12:41 +1100)
commite6003e52617385f731ccf93b13d21d5403534a78
tree63f5a8bcde200294bf1713b338c18e544154071a
parentfb50a45a21ff56480d76acd1c33c13c323cbf5e2
ReadOnly: If record does not exist, upgrade to write-lock

If we attempt a readonly lock request for a record that do not exist (yet)
in the local TDB, then upgrade the request to ask for a write lock and force a
request for migrate the record onto the local node.
This allows the "only request record on second local request for known contended records"
heuristics to try to avoid creating readonly delegations unless we have good reason to
assume it is a contended record.
libctdb/ctdb.c