From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 5DD976EC5F; Mon, 19 Apr 2021 11:37:27 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 5DD976EC5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1618821447; bh=ifMmGmid7hOI2MIcnl6Z40J8KVfc2TVljW7wkJXQGHM=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=oVyNF2CboMCTmoL0JX6o5XGEUxxJ3qMmvDDmctkfAGjKIQDy5ONYMUBSJyvbb0t0Q IPlj4peaEbK5t0l4Cy7j+AyF81VJahdIjjBmMRmVdht2Hi8Z65GOKGPqVzWPMuzKEp VpPdS7Sxwr+jPN6FBcJY8AstKW8FSpiVKZGQMaMI= Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 1A4306EC5F for ; Mon, 19 Apr 2021 11:37:26 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 1A4306EC5F Received: by mail-lj1-f179.google.com with SMTP id o5so5314347ljc.1 for ; Mon, 19 Apr 2021 01:37:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=C5sR+stNyRdjVRyb/RGuNbRNLMfTL7opWXh3WHyJ1KM=; b=NBQ046ujQ4xVv+Mmvu1IMd3QKeCHeXFApeQp9HVV5UzDbhjzaW2qveKaIxdyxomzsx AtbkshUIYh+rBBBE4ZPlGM8RgCNxrt6LSfZq5JlSW2E8Mat8KvYCn3Y+ei6xaDBWT5bE ncc5R1ET03rB3lx2LHrNHiK/+ZKWX5Xgx93ydEkCCK226nqwGAH/QhhW/CK8TKOois5a 6qk+n70QFnjSyDEJ2W7dCnMGAa17UW9FxICuPi1gvQY9z44lWDEVTwXUpw5Mi4mZQOWb f3F1paPyDe7sgy9oEZSEKzdikaGueK3zysH+QJWwf/O44CWzT8HCMy0OOCUola2SmtNc kaCg== X-Gm-Message-State: AOAM530xRGuA5MKF+2gDwd8gNVjOAV3sFqmzpGEth7XA3Jcph4UfCzLT o+BeCdXZVKjbVXzIWuBcK8cy0RZx9tkNsg== X-Google-Smtp-Source: ABdhPJypXQgf6fYch4oGdGOvrfHFdA/aZxdCjZ5gUnfrT/EMMC7SrQYh0H4zl2L1pgoqL5KXA57HOA== X-Received: by 2002:a2e:a543:: with SMTP id e3mr10505337ljn.433.1618821444346; Mon, 19 Apr 2021 01:37:24 -0700 (PDT) Received: from grain.localdomain ([5.18.199.94]) by smtp.gmail.com with ESMTPSA id y35sm731694lfa.122.2021.04.19.01.37.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Apr 2021 01:37:23 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id 43CE1560123; Mon, 19 Apr 2021 11:37:22 +0300 (MSK) To: tml Date: Mon, 19 Apr 2021 11:37:16 +0300 Message-Id: <20210419083719.29689-1-gorcunov@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 0/3] wal,txn_limbo: a few cleanups X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Cyrill Gorcunov via Tarantool-patches Reply-To: Cyrill Gorcunov Cc: Vladislav Shpilevoy Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Hi! Here are a few cleanups for wal and txn_limbo. The txn_limbo cleanups shrinks code while wal modes rework allows to save a pointer. I made the series during work on issue 5447 branch gorcunov/gh-5447-cleanup Cyrill Gorcunov (3): wal: sanitize wal_mode txn_limbo: simplify owner migration condition txn_limbo: simplify txn_limbo_ack src/box/txn_limbo.c | 6 ++---- src/box/wal.c | 6 +++++- src/box/wal.h | 27 +++++++++++++++++++++++---- 3 files changed, 30 insertions(+), 9 deletions(-) base-commit: d2bd451095890c1caaedb2d1c2fc3a49c554915e -- 2.30.2