diff options
author | Boris Pavlovic <boris@pavlovic.me> | 2013-01-25 07:16:37 +0400 |
---|---|---|
committer | Boris Pavlovic <boris@pavlovic.me> | 2013-02-18 05:31:02 +0400 |
commit | 0963a8158781eaf345523b4bffb045fb7b2c91db (patch) | |
tree | 747b3a7b3770ba4c7829fa8ec5d00f33c2bad41f /nova/exception.py | |
parent | cf6e7ac1e4a9fdab81476741849f8100c10b9770 (diff) | |
download | nova-0963a8158781eaf345523b4bffb045fb7b2c91db.tar.gz nova-0963a8158781eaf345523b4bffb045fb7b2c91db.tar.xz nova-0963a8158781eaf345523b4bffb045fb7b2c91db.zip |
Remove race condition (in TaskLog)
Delete all duplicate rows with same (task_name, host, period_beginning,
period_ending) expect one with the biggest value in `id` column.
Create UC on fields (task_name, host, period_beginning, period_ending)
Replace Select then Insert -> Try to Insert.
blueprint db-unique-keys
Change-Id: I99f45a6de6630482e9c56738f894cc55a37fffaf
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions