@@ -25,15 +25,12 @@ box.info.synchro
2525 but they can't create any synchronous transactions.
2626 To claim or reclaim the queue, use :ref: `box.ctl.promote() <box_ctl-promote >` on the instance that you want
2727 to promote.
28- With elections enabled, an instance runs ``box.ctl.promote() `` command automatically after winning the elections.
2928 To clear the ownership, call :ref: `box.ctl.demote() <box_ctl-demote >` on the synchronous queue owner.
3029
31- .. note ::
32-
33- When Raft election is enabled and :ref: `replication.election_mode <configuration_reference_replication_election_mode >`
34- is set to ``candidate ``, the new Raft leader claims the queue automatically.
35- It means that the value of ``box.info.synchro.queue.owner `` becomes equal to :ref: `box.info.election.leader <box_info_election >`.
36- When Raft enabled, no manual intervention with ``box.ctl.promote() `` or ``box.ctl.demote() `` is required.
30+ When Raft election is enabled and :ref: `replication.election_mode <configuration_reference_replication_election_mode >`
31+ is set to ``candidate ``, the new Raft leader claims the queue automatically after winning the elections.
32+ It means that the value of ``box.info.synchro.queue.owner `` becomes equal to :ref: `box.info.election.leader <box_info_election >`.
33+ When Raft enabled, no manual intervention with ``box.ctl.promote() `` or ``box.ctl.demote() `` is required.
3734
3835 - ``term `` (since version :doc: `2.10.0 </release/2.10.0 >`) -- current queue term.
3936 It contains the term of the last ``PROMOTE `` request.
@@ -97,22 +94,30 @@ box.info.synchro
9794 app:instance001> box.info.synchro
9895 ---
9996 - queue:
100- owner: 2
97+ owner: 1
10198 confirm_lag: 0
102- term: 28
99+ term: 2
103100 age: 0
104101 len: 0
105102 busy: false
106103 quorum: 2
107104 ...
108105
109- Create a space called ``sync `` and enable synchronous replication on this space.
110- Then, create an index.
106+ Create a space called ``sync `` and enable synchronous replication on this space:
111107
112108 .. code-block :: console
113109
114110 app:instance001> s = box.schema.space.create("sync", {is_sync=true})
111+ ---
112+ ...
113+
114+ Then, create an index:
115+
116+ .. code-block :: console
117+
115118 app:instance001> _ = s:create_index('pk')
119+ ---
120+ ...
116121
117122 After that, use ``box.ctl.promote() `` function to claim a queue:
118123
@@ -124,23 +129,23 @@ box.info.synchro
124129
125130 .. code-block :: console
126131
127- app:instance001> require('fiber').new(function() box.space.sync :replace{1} end)
132+ app:instance001> require('fiber').new(function() box.space.bands :replace{1} end)
128133 ---
129134 - status: suspended
130135 name: lua
131- id: 127
136+ id: 130
132137 ...
133138 app:instance001> require('fiber').new(function() box.space.sync:replace{1} end)
134139 ---
135140 - status: suspended
136141 name: lua
137- id: 128
142+ id: 131
138143 ...
139144 app:instance001> require('fiber').new(function() box.space.sync:replace{1} end)
140145 ---
141146 - status: suspended
142147 name: lua
143- id: 129
148+ id: 132
144149 ...
145150
146151 If you call the ``box.info.synchro `` command again,
@@ -153,7 +158,7 @@ box.info.synchro
153158 - queue:
154159 owner: 1
155160 confirm_lag: 0
156- term: 29
161+ term: 2
157162 age: 0
158163 len: 0
159164 busy: false
0 commit comments