From patchwork Thu Oct 22 21:24:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Pfaff X-Patchwork-Id: 1386430 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ovn.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CHL3c2lJBz9sSs for ; Fri, 23 Oct 2020 08:24:44 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 4F796878A1; Thu, 22 Oct 2020 21:24:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9xPwERZf-n2b; Thu, 22 Oct 2020 21:24:36 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by hemlock.osuosl.org (Postfix) with ESMTP id B488787887; Thu, 22 Oct 2020 21:24:35 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 97BC5C1AD5; Thu, 22 Oct 2020 21:24:35 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id BA294C0052 for ; Thu, 22 Oct 2020 21:24:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A723F86B6C for ; Thu, 22 Oct 2020 21:24:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YdwmaNV7AhOP for ; Thu, 22 Oct 2020 21:24:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by whitealder.osuosl.org (Postfix) with ESMTPS id 675F486990 for ; Thu, 22 Oct 2020 21:24:32 +0000 (UTC) Received: from sigfpe.attlocal.net (75-54-222-30.lightspeed.rdcyca.sbcglobal.net [75.54.222.30]) (Authenticated sender: blp@ovn.org) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 760CD100008; Thu, 22 Oct 2020 21:24:29 +0000 (UTC) From: Ben Pfaff To: dev@openvswitch.org Date: Thu, 22 Oct 2020 14:24:19 -0700 Message-Id: <20201022212422.1913373-2-blp@ovn.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201022212422.1913373-1-blp@ovn.org> References: <20201022212422.1913373-1-blp@ovn.org> MIME-Version: 1.0 Cc: Ben Pfaff Subject: [ovs-dev] [PATCH ovn 2/5] ovn-ic: Improve comments for database transactions. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Signed-off-by: Ben Pfaff --- ic/ovn-ic.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ic/ovn-ic.c b/ic/ovn-ic.c index 923969fff4f1..0514a701e8a7 100644 --- a/ic/ovn-ic.c +++ b/ic/ovn-ic.c @@ -136,6 +136,10 @@ az_run(struct ic_context *ctx) az_name = xstrdup(nb_global->name); } + if (ctx->ovnisb_txn) { + ovsdb_idl_txn_add_comment(ctx->ovnisb_txn, "AZ %s", az_name); + } + ICSBREC_AVAILABILITY_ZONE_FOR_EACH (az, ctx->ovnisb_idl) { if (!strcmp(az->name, az_name)) { return az;