diff options
| author | Nikhil Komawar <nikhil.komawar@rackspace.com> | 2012-07-06 18:22:56 -0400 |
|---|---|---|
| committer | Nikhil Komawar <nikhil.komawar@rackspace.com> | 2012-07-06 18:22:56 -0400 |
| commit | 642ec634c3beeb69175d0df12bcec8833e7efae5 (patch) | |
| tree | f2b9122d056055c6f98220b66a0852518bd73286 /nova | |
| parent | 45a6a91e893294bdcd3b4fe38669171ac10ffe13 (diff) | |
Implements updating complete bw usage data
the DB query is not filtering by the mac address.
Hence, only one of them was being updated and
with mismatched bw usage info.
fixes bug 1021961
Change-Id: I792493a6e0817d62bbf6955df9cd5bc0e4af9dbb
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/db/sqlalchemy/api.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py index ffed5d061..e6d7f88c7 100644 --- a/nova/db/sqlalchemy/api.py +++ b/nova/db/sqlalchemy/api.py @@ -4371,6 +4371,7 @@ def bw_usage_update(context, session=session, read_deleted="yes").\ filter_by(start_period=start_period).\ filter_by(uuid=uuid).\ + filter_by(mac=mac).\ first() if not bwusage: |
