Skip to content

Commit e1af39e

Browse files
committed
Update text
1 parent 0402cfd commit e1af39e

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

doc/reference/reference_lua/box_space/_schema.rst

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@ box.space._schema
1212

1313
This space contains the following tuples:
1414

15-
* ``version`` tuple with version information for this Tarantool instance,
16-
* ``cluster`` tuple with the instance's replica set ID,
17-
* ``max_id`` tuple with the maximal space ID,
18-
* ``once...`` tuples that correspond to specific
15+
* ``version``: version information for this Tarantool instance.
16+
* ``replicaset_name`` (since :doc:`3.0.0 <release/3.0.0>`): the name of a replica set to which this instance belongs.
17+
* ``replicaset_uuid``: the instance's replica set UUID. In the version :doc:`3.0.0 <release/3.0.0>`, the field was renamed from ``cluster`` to ``replicaset_uuid``.
18+
* ``max_id`` (deprecated since :doc:`2.11.1 <https://github.com/tarantool/tarantool/releases/tag/2.11.1>`__): the maximal space ID.
19+
Use the ``_space:max()`` function instead.
20+
* ``once...``: tuples that correspond to specific
1921
:doc:`box.once() </reference/reference_lua/box_once>` blocks from the instance's
2022
:ref:`initialization file <index-init_label>`.
2123
The first field in these tuples contains the ``key`` value from the
22-
corresponding ``box.once()`` block prefixed with 'once' (e.g. `oncehello`),
24+
corresponding ``box.once()`` block prefixed with 'once' (for example, ``oncehello``),
2325
so you can easily find a tuple that corresponds to a specific
2426
``box.once()`` block.
2527

@@ -28,12 +30,11 @@ box.space._schema
2830
Here is what ``_schema`` contains in a typical installation (notice the
2931
tuples for two ``box.once()`` blocks, ``'oncebye'`` and ``'oncehello'``):
3032

31-
.. code-block:: tarantoolsession
33+
.. code-block:: tarantoolsession
3234
33-
tarantool> box.space._schema:select{}
34-
---
35-
- - ['cluster', 'b4e15788-d962-4442-892e-d6c1dd5d13f2']
36-
- ['max_id', 512]
37-
- ['oncebye']
38-
- ['oncehello']
39-
- ['version', 1, 7, 2]
35+
app:instance001> box.space._schema:select{}
36+
---
37+
- - ['replicaset_name', 'replicaset001']
38+
- ['replicaset_uuid', 'd844f92f-d297-4fa2-8a80-c10860f5d8b5']
39+
- ['version', 3, 1, 0]
40+
...

0 commit comments

Comments
 (0)