|
| 1 | +.. _compat-option-session-push-deprecation: |
| 2 | + |
| 3 | +box.session.push deprecation |
| 4 | +============================ |
| 5 | + |
| 6 | +Option: ``box_session_push_deprecation`` |
| 7 | + |
| 8 | +Starting from version 3.0, Lua API function :ref:`box.session.push()` |
| 9 | +and C API function :ref:`box_session_push()` are deprecated. |
| 10 | + |
| 11 | +Old and new behavior |
| 12 | +-------------------- |
| 13 | + |
| 14 | +New behavior: calling `box.session.push()` raises an error. |
| 15 | + |
| 16 | +.. code-block:: tarantoolsession |
| 17 | +
|
| 18 | + tarantool> box.session.push({1}) |
| 19 | + --- |
| 20 | + - error: box.session.push is deprecated |
| 21 | + ... |
| 22 | +
|
| 23 | +Old behavior: `box.session.push()` is available to use. When it's called for the |
| 24 | +first time, a deprecation warning is printed to the log. |
| 25 | + |
| 26 | +.. code-block:: tarantoolsession |
| 27 | +
|
| 28 | + tarantool> box.session.push({1}) |
| 29 | + 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. |
| 30 | + %TAG !push! tag:tarantool.io/push,2018 |
| 31 | + --- |
| 32 | + - 1 |
| 33 | + ... |
| 34 | + --- |
| 35 | + - true |
| 36 | + ... |
| 37 | +
|
| 38 | +Known compatibility issues |
| 39 | +-------------------------- |
| 40 | + |
| 41 | +At this point, no incompatible modules are known. |
| 42 | + |
| 43 | +Detecting issues in your codebase |
| 44 | +--------------------------------- |
| 45 | + |
| 46 | +If your application uses `box.session.push()`, consider rewriting it using |
| 47 | +:ref:`box.broadcast() <box-broadcast>`. |
0 commit comments