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>
Mon, 6 May 2013 22:44:45 +0000 (15:44 -0700)
commit66980be97d99fa80de77e495bd0b7b4ad5079148
tree50688b2b82c6172761bd422b3f0a6565f8d8d10a
parent8e85e0374909b3c1ad6643311f83ce6ee1768c29
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