On Fri, Aug 28, 2020 at 5:42 PM Dumitru Ceara <[email protected]> wrote:

> Reported-at: https://bugzilla.redhat.com/id=1873455
> Reported-by: Ying Xu <[email protected]>
> Signed-off-by: Dumitru Ceara <[email protected]>
>

Thanks. I applied this patch to master and branch-20.06.

Numan


> ---
>  utilities/ovn-nbctl.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/utilities/ovn-nbctl.c b/utilities/ovn-nbctl.c
> index d7bb4b4..542cbf7 100644
> --- a/utilities/ovn-nbctl.c
> +++ b/utilities/ovn-nbctl.c
> @@ -6081,6 +6081,11 @@ do_nbctl(const char *args, struct ctl_command
> *commands, size_t n_commands,
>          nb = nbrec_nb_global_insert(txn);
>      }
>
> +    /* Deal with potential overflows. */
> +    if (nb->nb_cfg == LLONG_MAX) {
> +        nbrec_nb_global_set_nb_cfg(nb, 0);
> +    }
> +
>      if (wait_type != NBCTL_WAIT_NONE) {
>          ovsdb_idl_txn_increment(txn, &nb->header_,
> &nbrec_nb_global_col_nb_cfg,
>                                  force_wait);
> --
> 1.8.3.1
>
> _______________________________________________
> dev mailing list
> [email protected]
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>
>
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to