[ovs-git] [ovn-org/ovn] bad3cc: chassis.c: Add comment to SB DB transaction only w...

Dumitru Ceara noreply at github.com
Tue Jun 30 08:28:02 UTC 2020

  Branch: refs/heads/branch-20.06
  Home:   https://github.com/ovn-org/ovn
  Commit: bad3cc972ed18066335bdd0da0fbca922fff0601
  Author: Dumitru Ceara <dceara at redhat.com>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M controller/chassis.c

  Log Message:
  chassis.c: Add comment to SB DB transaction only when needed.

The chassis_run() function incorrectly adds a "ovn-controller:
registering chassis" comment to every SB transaction. This should be done
only when the chassis record is created or updated. If nothing changes in
the chassis record we shouldn't add useless extra information to the
transaction request.

Reported-by: Daniel Alvarez <dalvarez at redhat.com>
Reported-at: https://bugzilla.redhat.com/1850511
Fixes: 5344f24ecb1a ("ovn-controller: Refactor chassis.c to abstract the string parsing")
Signed-off-by: Dumitru Ceara <dceara at redhat.com>
Signed-off-by: Numan Siddique <numans at ovn.org>

(cherry-picked from master commit 48ada61211ac7d985a0f222b5f27a70ecabc9600)

More information about the git mailing list