commit 7b6364a4f85e93ac77f740e654b681dfbd47e1f8
Author: Boris Bobrov <email address hidden>
Date: Wed Jan 13 18:26:51 2016 +0300
Use the driver to get limits
@response_truncated was used to set the limit of returned entries. It
asked the driver about the limit and set it to hints. With
domain-specific configs, there are multiple driver instances and each of
them carries domain-specific config.
However, with domain-specific configs, the driver is not yet configured
at that point, because sometimes the manager needs to perform additional
actions in order to understand what domain it works with. Because of
that, @response_truncated always got the limit from the default driver,
not from the one actually used for the domain.
Move the logic of setting the limit from the decorator to a private
method, call it after determining the domain and driver.
Reviewed: https:/ /review. openstack. org/266989 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=7b6364a4f85 e93ac77f740e654 b681dfbd47e1f8
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7b6364a4f85e93a c77f740e654b681 dfbd47e1f8
Author: Boris Bobrov <email address hidden>
Date: Wed Jan 13 18:26:51 2016 +0300
Use the driver to get limits
@response_ truncated was used to set the limit of returned entries. It
asked the driver about the limit and set it to hints. With
domain-specific configs, there are multiple driver instances and each of
them carries domain-specific config.
However, with domain-specific configs, the driver is not yet configured
at that point, because sometimes the manager needs to perform additional
actions in order to understand what domain it works with. Because of
that, @response_truncated always got the limit from the default driver,
not from the one actually used for the domain.
Move the logic of setting the limit from the decorator to a private
method, call it after determining the domain and driver.
Change-Id: I1748d491b047e3 3712380da731c27 2f9d471ec0a
Closes-Bug: 1495669