From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 4D9F424E61 for ; Sun, 8 Sep 2019 08:50:09 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qTAAEazXOoc3 for ; Sun, 8 Sep 2019 08:50:09 -0400 (EDT) Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 0E19324EF0 for ; Sun, 8 Sep 2019 08:50:09 -0400 (EDT) Subject: [tarantool-patches] Re: [PATCH 1/2] wal: deprecate rows_per_wal in favour of wal_max_size From: Vladislav Shpilevoy References: <15b6e108adb8c2241e1213a4ac399f959850ba8f.1567872249.git.v.shpilevoy@tarantool.org> Message-ID: Date: Sun, 8 Sep 2019 14:53:46 +0200 MIME-Version: 1.0 In-Reply-To: <15b6e108adb8c2241e1213a4ac399f959850ba8f.1567872249.git.v.shpilevoy@tarantool.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org Cc: alexander.turenko@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