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:45:25 +0000 (17:45 -0700)
commit67e0aea87ad458059d3798a2600e5ee12bd7e150
tree74f1ceae40b89dcd97b0a16fcbde83ccd44e464d
parente6105b77835bba86253ba6f207954c6475198e69
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