]> git.proxmox.com Git - mirror_ovs.git/commitdiff
jsonrpc-server: Report monitor session ID properly in error message.
authorBen Pfaff <blp@ovn.org>
Fri, 25 Aug 2017 18:25:34 +0000 (11:25 -0700)
committerBen Pfaff <blp@ovn.org>
Fri, 8 Dec 2017 22:53:21 +0000 (14:53 -0800)
The error message in question is about the monitor session ID but it
actually reports the JSON-RPC request ID instead, which is surprising.

Found by inspection.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Justin Pettit <jpettit@ovn.org>
ovsdb/jsonrpc-server.c

index da3b3835f0d7b06a3594a5d787096de9c1c950d9..b94681daf6712894f2b9eeba9839ffb6e3abb7e7 100644 (file)
@@ -1415,7 +1415,7 @@ ovsdb_jsonrpc_monitor_cond_change(struct ovsdb_jsonrpc_session *s,
 
     m = ovsdb_jsonrpc_monitor_find(s, params->u.array.elems[0]);
     if (!m) {
-        error = ovsdb_syntax_error(request_id, NULL,
+        error = ovsdb_syntax_error(params->u.array.elems[0], NULL,
                                    "unknown monitor session");
         goto error;
     }