]> git.proxmox.com Git - mirror_ovs.git/commit
db-ctl-base: Fix reference-following feature in get_row_by_id().
authorZhiPeng Lu <lu.zhipeng@zte.com.cn>
Tue, 11 Jul 2017 00:47:10 +0000 (08:47 +0800)
committerBen Pfaff <blp@ovn.org>
Fri, 14 Jul 2017 00:16:07 +0000 (17:16 -0700)
commitd9c59d5b3552e8a4c5db734c96c0e939a4533354
tree8a95b2d48c278fd2d200235fb029c58a75a97702
parent2e72898bbab40f48cc3fe77ce0273bb9bb66e9ac
db-ctl-base: Fix reference-following feature in get_row_by_id().

If a particular column is supposed to be reached by following a reference
from a UUID column, then that really needs to happen; if there's no
reference, then we're probably starting from a row in the wrong table.

This fixes an assertion failure in command "ovs-vsctl list netflow br0",
if bridge br0 without any netflows.
$ovs-vsctl list netflow br0
ovs-vsctl: lib/ovsdb-idl.c:2407: assertion column_idx < class->n_columns failed
in ovsdb_idl_read()
Aborted

Fixes: 3f5b5f7b4115 ("db-ctl-base: Always support all tables in schema.")
Signed-off-by: Zhipeng Lu <lu.zhipeng@zte.com.cn>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/db-ctl-base.c
tests/ovs-vsctl.at