[tarantool-patches] Re: [PATCH 1/2] wal: deprecate rows_per_wal in favour of wal_max_size
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Sun Sep 8 15:53:46 MSK 2019
Fixed a typo:
diff --git a/src/box/lua/load_cfg.lua b/src/box/lua/load_cfg.lua
index 4432e0d08..79bde4d23 100644
--- a/src/box/lua/load_cfg.lua
+++ b/src/box/lua/load_cfg.lua
@@ -321,14 +321,14 @@ local function upgrade_cfg(cfg, translate_cfg)
local translation = translate_cfg[k]
if translation ~= nil then
local new_key = translation[1]
- local transofm = translation[2]
+ local transform = translation[2]
log.warn('Deprecated option %s, please use %s instead', k, new_key)
local new_val_orig = cfg[new_key]
local old_val, new_val
- if transofm == nil then
+ if transform == nil then
new_val = v
else
- old_val, new_val = transofm(v, new_val_orig)
+ old_val, new_val = transform(v, new_val_orig)
end
if new_val_orig ~= nil and
new_val_orig ~= new_val then
More information about the Tarantool-patches
mailing list