Skip to content
Snippets Groups Projects
Commit 317dc037 authored by Alexander Turenko's avatar Alexander Turenko Committed by Alexander Turenko
Browse files

config: add compat options

Fixes #9497

@TarantoolBot document
Title: config: compat options
The new section `compat` is added to the declarative configuration.

The options are the same as ones provided by the `compat` module. Each
can be set to `old` or `new`.

Example:

```yaml
compat:
  json_escape_forward_slash: old
```

The list of currently supported options with their defaults:

```yaml
compat:
  json_escape_forward_slash: new
  yaml_pretty_multiline: new
  fiber_channel_close_mode: new
  box_cfg_replication_sync_timeout: new
  sql_seq_scan_default: new
  fiber_slice_default: new
  box_info_cluster_meaning: new
  binary_data_decoding: new
  box_tuple_new_vararg: new
  box_session_push_deprecation: old
  sql_priv: new
  c_func_iproto_multireturn: new
  box_space_execute_priv: new
  box_tuple_extension: new
  box_space_max: new
...
```

The `box_cfg_replication_sync_timeout` option is non-dynamic and it
can't be changed after a startup.

Technically, all the other options could be changed in runtime (by
changing the configuration file and calling `config:reload()`), but I
would not generally recommend it.

At least code that handles `fiber_channel_close_mode` option has the
following comment, see commit de9b9308 ("fiber: add channel close
mode option to compat").

> The behavior is unspecified for already created channels.
> Choose the mode at an early stage of application's
> initialization.
parent a9e798c9
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment