summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2018-03-07 10:26:35 -0800
committerBen Pfaff <blp@ovn.org>2018-03-14 11:27:19 -0700
commit62bba609351a8c71319f80a59731a3810c873d27 (patch)
tree27b47c4a51947ed40091d712f893f9964935dfda /lib
parentee60eefecb026fca01cde723dc664ad3ca206534 (diff)
downloadopenvswitch-62bba609351a8c71319f80a59731a3810c873d27.tar.gz
ovsdb-idl: Use modern form of <monitor-requests>.
Long ago, a <monitor-requests> object in the OVSDB protocol mapped a table name to a single <monitor-request>. Since then, it has mapped a table name to an *array of* <monitor-request> objects, but the OVSDB IDL has never been updated to use the modern form. This commit makes that change. Reported-by: Anil Jangam <anilj.mailing@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Justin Pettit <jpettit@ovn.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/ovsdb-idl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c
index b027f8cad..642ce66f9 100644
--- a/lib/ovsdb-idl.c
+++ b/lib/ovsdb-idl.c
@@ -1600,7 +1600,8 @@ ovsdb_idl_send_monitor_request__(struct ovsdb_idl *idl,
json_object_put(monitor_request, "where", where);
table->cond_changed = false;
}
- json_object_put(monitor_requests, tc->name, monitor_request);
+ json_object_put(monitor_requests, tc->name,
+ json_array_create_1(monitor_request));
}
}
free_schema(schema);