summaryrefslogtreecommitdiff
path: root/transaction-common-states.dot
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-04-08 17:47:08 +0200
committerChristian Grothoff <christian@grothoff.org>2023-04-08 17:47:08 +0200
commit160809d12e9a956ffb4cbef0e3cb8cbb72804114 (patch)
treeaf4a68e2286f37e31b7c6cf9dd6af17eba4e237d /transaction-common-states.dot
parentc68cb55278b9e1d6ce5cfebb5f948ccbf56be41e (diff)
downloaddocs-160809d12e9a956ffb4cbef0e3cb8cbb72804114.tar.gz
docs-160809d12e9a956ffb4cbef0e3cb8cbb72804114.tar.bz2
docs-160809d12e9a956ffb4cbef0e3cb8cbb72804114.zip
redo diagram in dot
Diffstat (limited to 'transaction-common-states.dot')
-rw-r--r--transaction-common-states.dot28
1 files changed, 28 insertions, 0 deletions
diff --git a/transaction-common-states.dot b/transaction-common-states.dot
new file mode 100644
index 00000000..890cc230
--- /dev/null
+++ b/transaction-common-states.dot
@@ -0,0 +1,28 @@
+digraph G {
+
+ initial[label="", shape="circle"];
+ pending[label="pending"];
+ done[label="done", shape="box"];
+ aborted[label="aborted", shape="box"];
+ aborting[label="aborting"];
+ failed[label="failed", shape="box"];
+ suspended[label="suspended"];
+
+ subgraph {
+ rank = same; pending;suspended;
+ }
+
+ subgraph {
+ rank = same; done; aborted; failed;
+ }
+
+ initial->pending;
+ pending->suspended [color="blue",label="suspend"];
+ suspended->pending [color="blue",label="resume"];
+ pending->done [color="green",label="success"];
+ pending->failed [color="red",label="error"];
+ pending->aborting [color="blue",label="abort"];
+ pending->aborted [color="blue",label="abort"];
+ aborting->aborted [color="green",label="success"];
+ aborting->failed [color="red",label="error"];
+}