]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Making NFS _find_share efficient
authorapoorvad <apps.desh@gmail.com>
Tue, 15 Dec 2015 19:27:42 +0000 (11:27 -0800)
committerapoorvad <apps.desh@gmail.com>
Wed, 16 Dec 2015 22:57:33 +0000 (14:57 -0800)
commit0ef0824814d36a572cfb23386b33dbdac07408c3
tree412b729a07a75cb40032de17e45d189ffcb4142a
parentc4f8fb865c4d4fa511846282d3cf93d0982eebff
Making NFS _find_share efficient

NfsDriver's _find_share calls self._is_share_eligible, which calls
get_capacity_info(). Then, it calls get_capacity_info() itself.

The method is optimized to not call underlying get_capacity_info()
twice.

Change-Id: I07a0601b9d902e54f84540f05cdadd5587522643
Closes-Bug: #1507682
cinder/tests/unit/test_nfs.py
cinder/volume/drivers/nfs.py