ovsdb-client: Avoid assertion with multiple databases.
authorJustin Pettit <jpettit@nicira.com>
Mon, 6 May 2013 19:43:48 +0000 (12:43 -0700)
committerJustin Pettit <jpettit@nicira.com>
Tue, 7 May 2013 00:46:33 +0000 (17:46 -0700)
commitb031b4dd05c0678997cf0ca53bb8ced548de746f
tree2a99771cec10ede45568cf9fac89f280e9fc5207
parent5aa90f686ab963c216d5da554bd953358b91adab
ovsdb-client: Avoid assertion with multiple databases.

When using ovsdb-client with an ovsdb-server with multiple databases, an
assertion could trigger due to them being returned in non-sorted order.
This commit changes the fetch_dbs() function to always return databases
in sorted order, since both callers are expecting that behavior.

Bug #16882

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Reported-by: Spiro Kourtessis <spiro@vmware.com>
AUTHORS
ovsdb/ovsdb-client.c