Optimization: check_img_metadata_properties_quota should return immediately if metadata is empty
Bug #1220120 reported by
David Jia
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
David Jia |
Bug Description
When metadata is empty, the function check_img_
"if metadata is None:
return"
Changed in nova: | |
assignee: | nobody → David Jia (jiataotj) |
Changed in nova: | |
importance: | Undecided → Low |
summary: |
- check_img_metadata_properties_quota doesn't return correctly when - metadata is empty + Optimization: check_img_metadata_properties_quota should return + immediately if metadata is empty |
Changed in nova: | |
milestone: | none → icehouse-1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | icehouse-1 → 2014.1 |
To post a comment you must log in.
althoug current code lines doesn't cause serious problem, we should correct it to avoid useless program running to benefit overall performance, so we should use "if not metadata" to replace the current code line.