]> git.proxmox.com Git - mirror_ovs.git/commitdiff
db-ctl-base: Don't shadow 'invalidate_cache' callback.
authorJustin Pettit <jpettit@ovn.org>
Tue, 27 Feb 2018 22:24:23 +0000 (14:24 -0800)
committerJustin Pettit <jpettit@ovn.org>
Wed, 28 Feb 2018 22:53:32 +0000 (14:53 -0800)
Signed-off-by: Justin Pettit <jpettit@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
lib/db-ctl-base.c
lib/db-ctl-base.h

index ae7b6cde27f49170bb536d38a31f615afbe2b1a1..bfd7a54a8b5a327b28c581a0b11cd97b40004669 100644 (file)
@@ -793,8 +793,8 @@ is_condition_satisfied(const struct ovsdb_idl_table_class *table,
 static void
 invalidate_cache(struct ctl_context *ctx)
 {
-    if (ctx->invalidate_cache) {
-        (ctx->invalidate_cache)(ctx);
+    if (ctx->invalidate_cache_cb) {
+        (ctx->invalidate_cache_cb)(ctx);
     }
 }
 \f
@@ -2250,7 +2250,7 @@ void
 ctl_context_init(struct ctl_context *ctx, struct ctl_command *command,
                  struct ovsdb_idl *idl, struct ovsdb_idl_txn *txn,
                  struct ovsdb_symbol_table *symtab,
-                 void (*invalidate_cache)(struct ctl_context *))
+                 void (*invalidate_cache_cb)(struct ctl_context *))
 {
     if (command) {
         ctl_context_init_command(ctx, command);
@@ -2258,7 +2258,7 @@ ctl_context_init(struct ctl_context *ctx, struct ctl_command *command,
     ctx->idl = idl;
     ctx->txn = txn;
     ctx->symtab = symtab;
-    ctx->invalidate_cache = invalidate_cache;
+    ctx->invalidate_cache_cb = invalidate_cache_cb;
 }
 
 /* Completes processing of 'command' within 'ctx'. */
index a2f91abfb31e6605e0fde52033d51c31eb710ab4..eb444270535b9d05745fe366c26a14efb278a934 100644 (file)
@@ -231,7 +231,7 @@ struct ctl_context {
     /* For implementation with a cache of the contents of the database,
      * this function will be called when the database is changed and the
      * change makes the cache no longer valid. */
-    void (*invalidate_cache)(struct ctl_context *);
+    void (*invalidate_cache_cb)(struct ctl_context *);
 
     /* A command may set this member to true if some prerequisite is not met
      * and the caller should wait for something to change and then retry. */