File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -322,9 +322,14 @@ URIs of both masters in the replica set and say
322
322
``print('box.once executed on master #1') `` so it will be clear when and where the
323
323
``box.once() `` logic is executed.
324
324
325
- Now we can launch the two masters. Again, the launch order doesn't matter.
326
- The ``box.once() `` logic will also be executed only once, at the master which
327
- is elected as the replica set :ref: `leader <replication-leader >` at bootstrap.
325
+ Now we can launch the two masters.
326
+
327
+ .. NOTE ::
328
+
329
+ Tarantool guarantees that ``box.once() `` logic will be executed once only
330
+ for a single instance. Starting a master-master replica set in parallel
331
+ can cause repeated execution of ``box.once ``. That, particularly, can result
332
+ in data inconsistency.
328
333
329
334
.. code-block :: console
330
335
You can’t perform that action at this time.
0 commit comments