]> git.proxmox.com Git - mirror_ovs.git/commit
db-ctl-base: Don't die in is_condition_satisfied() on error.
authorJakub Sitnicki <jkbs@redhat.com>
Mon, 2 Jul 2018 10:49:59 +0000 (12:49 +0200)
committerBen Pfaff <blp@ovn.org>
Tue, 3 Jul 2018 20:18:58 +0000 (13:18 -0700)
commite09b3af3e249b82aaf19e6d889d1d896881314e2
tree257bcda10b661779570874c2c12dccedbef411b0
parentd44cf05efb90b6725934028e9d053bcdc6557d5a
db-ctl-base: Don't die in is_condition_satisfied() on error.

Return the error message to the caller instead of reporting it and dying
so that the caller can handle the error without terminating the process
if needed.

Also, rename the function as it is no longer a typical predicate, so
that the users don't assume that the result is passed in return value.

Signed-off-by: Jakub Sitnicki <jkbs@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/db-ctl-base.c