]> xenbits.xensource.com Git - xen.git/commit
oxenstored: allow self-conflicts
authorThomas Sanders <thomas.sanders@citrix.com>
Thu, 23 Mar 2017 19:06:54 +0000 (19:06 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 28 Mar 2017 12:07:04 +0000 (13:07 +0100)
commit467c9de412f2ba80dc40a82b049abefc7bf8126a
treeb636e6fb149b43233c9ea7c1c93330a7dd9ea653
parent8ddbce0426ca4bea0ebc80479aa14f22f590e7af
oxenstored: allow self-conflicts

We already avoid inter-domain conflicts but now allow intra-domain
conflicts.  Although there are no known practical examples of a domain
that might perform operations that conflict with its own transactions,
this is conceivable, so here we avoid changing those semantics
unnecessarily.

When a transaction commit fails with a conflict and we look through
the history of commits to see which connection(s) to blame, ignore
historical commits that were made by the same connection as the
failing commit.

Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
Reviewed-by: Jonathan Davies <jonathan.davies@citrix.com>
tools/ocaml/xenstored/history.ml
tools/ocaml/xenstored/process.ml