]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Sheepdog: Optimization of error handling
authorzhangsong <zhangsong@cmss.chinamobile.com>
Sun, 15 Nov 2015 15:46:23 +0000 (23:46 +0800)
committerzhangsong <zhangsong@cmss.chinamobile.com>
Sat, 28 Nov 2015 16:13:27 +0000 (00:13 +0800)
commita1c10609896ce6b3a3afe7b0ebf74c92cadfe5de
treead027b3a93e54e07047a8c880a391dc334e60504
parent0a7103a24295e677e26a4a72d69830c2d4c41c48
Sheepdog: Optimization of error handling

Since each place where _run_dog() is called needs to handle a
connection error, it would be more efficient to handle it inside
the _run_dog() method.

Change-Id: Ib1eb3044e583b46a8a42f820bf780600415122e8
cinder/tests/unit/test_sheepdog.py
cinder/volume/drivers/sheepdog.py