mirror of https://github.com/hashicorp/boundary
fix(target): Correct accounting of updated rows when deleting address (#2799)
If an update call was made to a target that removed an address, for a target that already did not have an address, the incorrect number of rows updated was being reported. During the update the target's version was correctly being updated, resulting in one row being updated. However then the delete call would result in zero rows being deleted, since there was no address associated with the target, and this would replace the value for the returned rowsUpdated. This resulted in the target service thinking that no update happened, and it would report an error.pull/2816/head
parent
e64163ad1d
commit
0bee55aa19
Loading…
Reference in new issue