Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make cooperative reader always support read()
glance.common.utils.CooperativeReader provides eventlet-friendly cooperation on top of backends that support either read() or __iter__(). However, in the case of backends that only support __iter__(), such as images returned by store.get(...), read() is not defined. This patch adds read() in all cases. Fixes bug 1057322. Change-Id: I67d9b3e4d93fbefd7eeaf7cfc947ab635fe09534
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 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