Skip to content

Commit 383ecbf

Browse files
Onvemberlenkis
andcommitted
gh-399 translation (#1554)
* gh-399 translation * Apply suggestions from code review Co-authored-by: Elena Shebunyaeva <[email protected]> * update-po Co-authored-by: Elena Shebunyaeva <[email protected]>
1 parent c95c305 commit 383ecbf

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

locale/book/box/atomic.pot

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
msgid "Transaction control"
2+
msgid "Transactions"
33
msgstr ""
44

55
msgid "Transactions in Tarantool occur in **fibers** on a single **thread**. That is why Tarantool has a guarantee of execution atomicity. That requires emphasis."
@@ -65,9 +65,6 @@ msgstr ""
6565
msgid "However, a function might perform complex computations or might be written in such a way that yields do not occur for a long time. This can lead to unfair scheduling, when a single client throttles the rest of the system, or to apparent stalls in request processing. Avoiding this situation is the responsibility of the function’s author."
6666
msgstr ""
6767

68-
msgid "Transactions"
69-
msgstr ""
70-
7168
msgid "In the absence of transactions, any function that contains yield points may see changes in the database state caused by fibers that preempt. Multi-statement transactions exist to provide **isolation**: each transaction sees a consistent database state and commits all its changes atomically. At :ref:`commit <box-commit>` time, a yield happens and all transaction changes are written to the :ref:`write ahead log <internals-wal>` in a single batch. Or, if needed, transaction changes can be rolled back -- :ref:`completely <box-rollback>` or to a specific :ref:`savepoint <box-rollback_to_savepoint>`."
7269
msgstr ""
7370

locale/ru/LC_MESSAGES/book/box/atomic.po

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
msgid "Transaction control"
3-
msgstr "Контроль транзакций"
2+
msgid "Transactions"
3+
msgstr "Транзакции"
44

55
msgid ""
66
"Transactions in Tarantool occur in **fibers** on a single **thread**. "
@@ -201,9 +201,6 @@ msgstr ""
201201
"перекрывает работу остальной системы, или к явным задержкам в обработке "
202202
"запросов. Автору функции следует не допускать таких ситуаций."
203203

204-
msgid "Transactions"
205-
msgstr "Транзакции"
206-
207204
msgid ""
208205
"In the absence of transactions, any function that contains yield points "
209206
"may see changes in the database state caused by fibers that preempt. "
@@ -254,6 +251,12 @@ msgid ""
254251
" a transaction. It is a mark telling Tarantool to start a transaction "
255252
"after some database request that follows."
256253
msgstr ""
254+
"Иногда при тестировании механизма транзакций в Tarantool можно заметить, "
255+
"что выдача после ``box.begin()``, но перед любой операцией чтения/записи "
256+
"не приводит к прерыванию, как это должно происходить согласно описанию. "
257+
"Причина в том, что на самом деле ``box.begin()`` не запускает транзакцию:"
258+
" это просто метка, указывающая Tarantool запустить транзакцию после "
259+
"некоторого запроса к базе данных, который следует за этим."
257260

258261
msgid "You can’t mix storage engines in a transaction today."
259262
msgstr "На сегодняшний день нельзя смешивать движки базы данных в транзакции."
@@ -317,6 +320,10 @@ msgid ""
317320
" an abort. This is due to implicit yield happening after each chunk of "
318321
"code is executed in the console."
319322
msgstr ""
323+
"Поэтому выполнение отдельных команд, таких как ``select()``, "
324+
"``insert()``, ``update()`` в консоли внутри транзакции, приведет к "
325+
"прерыванию транзакции. Это связано с тем, что после выполнения каждого "
326+
"фрагмента кода в консоли происходит неявная передача управления (yield)."
320327

321328
msgid "**Example #1**"
322329
msgstr "**Пример №1**"

0 commit comments

Comments
 (0)