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:47:34 +0000 (17:47 -0700)
commit205f4f9b972cd3cb71d2ec5bade2e3fe3cc15629
tree7e3bff031aa1a830decbc211cc50936c850e8d83
parent527bba351aebd150a385eac6ebbc107d550f82a1
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