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

Dumitru Ceara noreply at github.com
Tue Jun 30 08:17:48 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/ovn-org/ovn
  Commit: 48ada61211ac7d985a0f222b5f27a70ecabc9600
      https://github.com/ovn-org/ovn/commit/48ada61211ac7d985a0f222b5f27a70ecabc9600
  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>




More information about the git mailing list