From 31b0b87203eafb1d24cf428e6df7b3d1791e763b Mon Sep 17 00:00:00 2001 From: knguyen100000010 <63071572+knguyen100000010@users.noreply.github.com> Date: Wed, 23 Aug 2023 09:21:47 -0400 Subject: [PATCH] Fix leader election recipe doc (#2048) --- zookeeper-docs/src/main/resources/markdown/recipes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zookeeper-docs/src/main/resources/markdown/recipes.md b/zookeeper-docs/src/main/resources/markdown/recipes.md index 2fd6c957887..9d3dec55c62 100644 --- a/zookeeper-docs/src/main/resources/markdown/recipes.md +++ b/zookeeper-docs/src/main/resources/markdown/recipes.md @@ -391,7 +391,7 @@ be a leader: 1. Create znode z with path "ELECTION/guid-n_" with both SEQUENCE and EPHEMERAL flags; -1. Let C be the children of "ELECTION", and I am the sequence +1. Let C be the children of "ELECTION", and i is the sequence number of z; 1. Watch for changes on "ELECTION/guid-n_j", where j is the largest sequence number such that j < i and n_j is a znode in C;