Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovn-nbctl: Monitor nb_cfg to detect and handle potential overflows
ovn-nbctl sync command will increase nb_cfg value each time it is executed with a specific wait_type, this increment will be handled without testing the current nb_cfg value because it is not monitored and that could lead to an overflow issue if nb_cfg == LLONG_MAX. To avoid such potential overflow cases we must monitor the real value of nb_cfg each time sync is executed and if there is any overflow issue it will be handled by function nbctl_pre_execute later on the execution. Fixes: be3a60f ("ovn-nbctl: Deal with nb_cfg overflows.") Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=1979774 Signed-off-by: Mohammad Heib <mheib@redhat.com> Signed-off-by: Numan Siddique <numans@ovn.org>
- Loading branch information
1 parent
c008522
commit b1a0709
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters