From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org> To: tarantool-patches@freelists.org Cc: alexander.turenko@tarantool.org Subject: [tarantool-patches] Re: [PATCH 1/2] wal: deprecate rows_per_wal in favour of wal_max_size Date: Sun, 8 Sep 2019 14:53:46 +0200 [thread overview] Message-ID: <b6fa3c61-4164-abaa-d085-98a6d71e225e@tarantool.org> (raw) In-Reply-To: <15b6e108adb8c2241e1213a4ac399f959850ba8f.1567872249.git.v.shpilevoy@tarantool.org> 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
next prev parent reply other threads:[~2019-09-08 12:50 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-09-07 16:05 [tarantool-patches] [PATCH 0/2] Deprecate rows_per_wal Vladislav Shpilevoy 2019-09-07 16:05 ` [tarantool-patches] [PATCH 1/2] wal: deprecate rows_per_wal in favour of wal_max_size Vladislav Shpilevoy 2019-09-08 12:53 ` Vladislav Shpilevoy [this message] 2019-09-10 18:50 ` [tarantool-patches] " Kirill Yukhin 2019-09-07 16:05 ` [tarantool-patches] [PATCH 2/2] wal: drop rows_per_wal option Vladislav Shpilevoy 2019-09-08 12:53 ` [tarantool-patches] " Vladislav Shpilevoy
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=b6fa3c61-4164-abaa-d085-98a6d71e225e@tarantool.org \ --to=v.shpilevoy@tarantool.org \ --cc=alexander.turenko@tarantool.org \ --cc=tarantool-patches@freelists.org \ --subject='[tarantool-patches] Re: [PATCH 1/2] wal: deprecate rows_per_wal in favour of wal_max_size' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox