Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use unique consumer_id when doing online data migration
If there are multiple consumers having allocations to the same resource provider, with different classes, it will attempt multiple INSERTs with the same consumer_id which is not allowed because of the database constraints. This patch adds a simple GROUP BY in order to ensure that the database server only provides us with unique values to avoid trying to INSERT duplicate values. Change-Id: I1acba5e65cd562472f29e354c6077f82844fa87d Closes-Bug: #1798163
- Loading branch information
Showing
3 changed files
with
14 additions
and
13 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