ShaoHe Feng has posted comments on this change.
Change subject: Fix some pep8 errors
......................................................................
Patch Set 1: Looks good to me, but someone else must approve
(1 inline comment)
....................................................
File vdsm/storage/misc.py
Line 643: currentThread = threading.currentThread()
Line 644:
Line 645: # Handle reacquiring lock in the same thread
Line 646: if currentThread in self._holdingThreads:
Line 647: if not self._currentState and exclusive:
"not self._currentState" include "self._currentState is False" and
"self._currentState is None"
Line 648: raise RuntimeError("Lock promotion is forbidden.")
Line 649:
Line 650: self._holdingThreads[currentThread] += 1
Line 651: return
--
To view, visit http://gerrit.ovirt.org/8237
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I417f646b8fc1f242f3d5c91fdf0d7e79600552e9
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Saggi Mizrahi <[email protected]>
Gerrit-Reviewer: Ayal Baron <[email protected]>
Gerrit-Reviewer: Barak Azulay <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: ShaoHe Feng <[email protected]>
Gerrit-Reviewer: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: Yeela Kaplan <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches