diff mbox series

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

Message ID 20201022212422.1913373-2-blp@ovn.org
State Accepted
Headers show
Series [ovs-dev,1/5] Makefile: Remove duplicated -I compiler flags. | expand

Commit Message

Ben Pfaff Oct. 22, 2020, 9:24 p.m. UTC
Signed-off-by: Ben Pfaff <blp@ovn.org>
---
 ic/ovn-ic.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

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;