-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate box.session.push() (#4695)
Resolves #3615
- Loading branch information
Showing
6 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
doc/reference/reference_lua/compat/box_session_push_deprecation.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
.. _compat-option-session-push-deprecation: | ||
|
||
box.session.push() deprecation | ||
============================== | ||
|
||
Option: ``box_session_push_deprecation`` | ||
|
||
Starting from version 3.0, Lua API function :ref:`box.session.push() <box_session-push>` | ||
and C API function :ref:`box_session_push() <box_box_session_push>` are deprecated. | ||
|
||
Old and new behavior | ||
-------------------- | ||
|
||
New behavior: calling `box.session.push()` raises an error. | ||
|
||
.. code-block:: tarantoolsession | ||
tarantool> box.session.push({1}) | ||
--- | ||
- error: box.session.push is deprecated | ||
... | ||
Old behavior: `box.session.push()` is available to use. When it's called for the | ||
first time, a deprecation warning is printed to the log. | ||
|
||
.. code-block:: tarantoolsession | ||
tarantool> box.session.push({1}) | ||
2024-12-18 15:42:51.537 [50750] main/104/interactive session.c:569 W> box.session.push is deprecated. Consider using box.broadcast instead. | ||
%TAG !push! tag:tarantool.io/push,2018 | ||
--- | ||
- 1 | ||
... | ||
--- | ||
- true | ||
... | ||
Known compatibility issues | ||
-------------------------- | ||
|
||
At this point, no incompatible modules are known. | ||
|
||
Detecting issues in your codebase | ||
--------------------------------- | ||
|
||
If your application uses `box.session.push()`, consider rewriting it using | ||
:ref:`box.broadcast() <box-broadcast>`. |