[tarantool-patches] [PATCH v2 3/3] netbox: deprecate console support
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Wed Mar 28 16:35:50 MSK 2018
Print warning about that. After a while the cosole support will
be deleted from netbox.
---
src/box/lua/net_box.lua | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/box/lua/net_box.lua b/src/box/lua/net_box.lua
index 5691dcb9e..0309eef17 100644
--- a/src/box/lua/net_box.lua
+++ b/src/box/lua/net_box.lua
@@ -650,6 +650,11 @@ local function new_sm(host, port, opts, connection, greeting)
local user, password = opts.user, opts.password; opts.password = nil
local last_reconnect_error
local remote = {host = host, port = port, opts = opts, state = 'initial'}
+ -- @deprecated since 1.10
+ if greeting and greeting.protocol == 'Lua console' or opts.console then
+ log.warn("Netbox text protocol support is deprecated since 1.10, "..
+ "please use require('console').connect() instead")
+ end
local function callback(what, ...)
if what == 'state_changed' then
local state, errno, err = ...
--
2.14.3 (Apple Git-98)
More information about the Tarantool-patches
mailing list