]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Don't clear _mounted_shares list in remoteFS while updating
authorAndrew Kerr <andrew.kerr@netapp.com>
Fri, 5 Sep 2014 15:28:06 +0000 (10:28 -0500)
committerAndrew Kerr <andrew.kerr@netapp.com>
Fri, 5 Sep 2014 15:28:48 +0000 (10:28 -0500)
commit9cc9cf111ef8a0265df5323fecaed12b0dabe312
tree23e68fb95df6e5a80be09f8aa21ab5c1fbbcb26b
parent2664da2467f5ffdf43fba96c5afad1ecfe548cba
Don't clear _mounted_shares list in remoteFS while updating

This fix makes the updating of the _mounted_shares list in
remoteFS more of an atomic operation.  Previously this list
would be cleared, then rebuilt.  That allowed a race
condition where operations that took place during this
update would have a list of 0 shares to work with.

Change-Id: I740d8f1b87db911242326a38ff398b81c5974cea
Closes-Bug: #1366083
cinder/volume/drivers/remotefs.py