Signed-off-by: Justin Pettit <[email protected]>
---
lib/db-ctl-base.c | 8 ++++----
lib/db-ctl-base.h | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/db-ctl-base.c b/lib/db-ctl-base.c
index ae7b6cde27f4..bfd7a54a8b5a 100644
--- a/lib/db-ctl-base.c
+++ b/lib/db-ctl-base.c
@@ -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);
}
}
@@ -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'. */
diff --git a/lib/db-ctl-base.h b/lib/db-ctl-base.h
index a2f91abfb31e..eb444270535b 100644
--- a/lib/db-ctl-base.h
+++ b/lib/db-ctl-base.h
@@ -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. */
--
2.7.4
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev