[ovs-dev] [PATCH ovn 2/5] ovn-ic: Improve comments for database transactions.

Ben Pfaff blp at ovn.org
Thu Oct 22 21:24:19 UTC 2020


Signed-off-by: Ben Pfaff <blp at ovn.org>
---
 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;
-- 
2.26.2



More information about the dev mailing list